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 DMS Coordinate
Expression
[0-9]{1,2}[:|°][0-9]{1,2}[:|'](?:\b[0-9]+(?:\.[0-9]*)?|\.[0-9]+\b)"?[N|S|E|W]
Description
Matches common Degree, Minute, Second coordinate values. The last part can be easily modified to be latitude or longitude specific by changing [N|S|E|W] to [N|S] for latitude or [E|W] for longitude.
Matches
12:12:12.223546"N|12:12:12.2246N|15:17:6"S|12°30'23.256547"S
Non-Matches
12.2225|15.25.257S|AA:BB:CC.DDS
Author Rating: Not yet rated. Kurt
   Displaying page 1 of 1 pages; Items 1 to 1

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