Regular Expressions in c#
deicist
Manchester, UK
Hi all, I'm trying to teach myself regular expressions in C# but I've run into a problem. I'm trying to match any occurence of V(number) in a string, then remove v(number) from the string, then match the last occurence of (number) in the remaining string. I can do the first 2 bits no problem, by matching 'V[0-9]*' but when I try to match [0-9]* in the string it won't work...unless the number is right at the start of the string. for example:
blahblah67blah doesn't match
67blahblahblah does match
Any ideas? (sorry if none of that made sense, I can post source code of what I'm doing if required)
blahblah67blah doesn't match
67blahblahblah does match
Any ideas? (sorry if none of that made sense, I can post source code of what I'm doing if required)
0
Comments