Regex not working in one case

Posted by Arnej65 on Stack Overflow See other posts from Stack Overflow or by Arnej65
Published on 2010-05-13T14:22:18Z Indexed on 2010/05/13 14:24 UTC
Read the original article Hit count: 399

Filed under:
|

I have a string with the following information.

Obabikon, ON 49°10'N 94°10’W 2278 km N69°W

I have a regex search as follows:

String LongPattern = @"(~)?([0-9\?])+°([0-9\?])*'[EWO]";
return FindPattern(source, LongPattern);

It should be finding the <94°10’W> But is it not. This regex is working for the rest of my data with out any problems.

Any clues?

© Stack Overflow or respective owner

Related posts about regex

Related posts about c#