S
Scott Bellware
Howdy,
Straight up... I'm a RegEx illiterate. I've got a couple books on the way
from Amazon, but I need some quick help with a little RegEx problem I'm
having today. Perhaps one of my C# brothers or sisters can assist me. I'll
buy you a drink at Tech-Ed if you can
I need a regular expression to validate a string representation of a
latitude or longitude measurement.
In the domain of the app I'm working on, a latitude is represented as two
digits, followed either "N" or "S", followed by two digits, followed by an
apostrophe, followed by two more digits. A longitude is represented almost
identically, except that the "N" or "S" would be an "E" or a "W".
Here are some examples:
Latitude: 43N00'00
Longitude: 95W40'00
Any help would be greatly appreciated.
Cheers,
Scott
Straight up... I'm a RegEx illiterate. I've got a couple books on the way
from Amazon, but I need some quick help with a little RegEx problem I'm
having today. Perhaps one of my C# brothers or sisters can assist me. I'll
buy you a drink at Tech-Ed if you can

I need a regular expression to validate a string representation of a
latitude or longitude measurement.
In the domain of the app I'm working on, a latitude is represented as two
digits, followed either "N" or "S", followed by two digits, followed by an
apostrophe, followed by two more digits. A longitude is represented almost
identically, except that the "N" or "S" would be an "E" or a "W".
Here are some examples:
Latitude: 43N00'00
Longitude: 95W40'00
Any help would be greatly appreciated.
Cheers,
Scott