RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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: The rating for this expression. Henri Van Wesemael
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials