Title |
Test
Find
Pattern Title
|
Expression |
^[NS]([0-8][0-9](\.[0-5]\d){2}|90(\.00){2})\040[EW]((0\d\d|1[0-7]\d)(\.[0-5]\d){2}|180(\.00){2})$ |
Description |
Validate location, latitude and longitude separated by space, where latitude is expressed as compass direction (N or S),degrees,minutes,seconds and longitude is expressed as compassdirection (E or W) ,degrees,minutes,seconds.
Range check for minutes and seconds (0-59),
max.latitude 90.00.00, max longitude 180.00.00
|
Matches |
N90.00.00 E180.00.00 | S34.59.33 W179.59.59 | N00.00.00 W000.00.00 |
Non-Matches |
N91.00.00 E181.00.00 | Z34.59.33 W179.59.59 | N00.00.00 W181.00.00 |
Author |
Rating:
Henri Van Wesemael
|
Source |
Henri |
Your Rating |
|
Title: I tried to separate into just latitude with no spce to test but unsuccessful. please help
Name: jack
Date: 9/20/2013 1:42:18 AM
Comment:
I tried to separate into just latitude with no spce to test but unsuccessful. please help
Title: Rock on
Name: Liquid Khaos
Date: 9/17/2008 5:21:55 PM
Comment:
This was spot on. No additional BS. Thanks.