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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Latitude, Longitude
Expression
\-?(90|[0-8]?[0-9]\.[0-9]{0,6})\,\-?(180|(1[0-7][0-9]|[0-9]{0,2})\.[0-9]{0,6})
Description
Parses Standard Latitude, Longitude notation for identifying earth co-ordinates (as per google maps etc). Allows values in format dd.dddddd,ddd.dddddd (lat, lng) where lat can be in range -90 to 90 and lng in range -180 - 180
Matches
-89.999999,180|0.01234,-12.32|90,180|
Non-Matches
-90.01,0.121|15.00001,181|90.1,-181
Author Rating: The rating for this expression. PJWhitfield
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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