Regular - Take all numeric characters following a text character

Posted by Simon on Stack Overflow See other posts from Stack Overflow or by Simon
Published on 2010-03-23T16:42:02Z Indexed on 2010/03/23 16:43 UTC
Read the original article Hit count: 312

Filed under:
|

Given a string in the format: XXX999999v99 (where X is any alpha character and v is any numeric character and v is a literal v character) how can I get a regex to match the numeric chatacters following the v? So far I've got 'v\d\d' which includes the v but ideally I'd like just the numeric part.

As an aside does anyone know of a tool in which you can specify a string to match and have the regex generated? Modifying an existing regex is one thing but I find starting from scratch painful!

© Stack Overflow or respective owner

Related posts about regex

Related posts about .NET