Displaying page
of
pages;
Items to
Title |
Test
Details
Google Maps Latitude,Longitude
|
Expression |
^(?<lat>(-?(90|(\d|[1-8]\d)(\.\d{1,6}){0,1})))\,{1}\s?(?<long>(-?(180|(\d|\d\d|1[0-7]\d)(\.\d{1,6}){0,1})))$
|
Description |
Regular expression for Google's format of Latitude and Longitude (if you were to copy and paste from either the Maps application or the web address).
Allows 7 decimal places, and an optional space after the comma.
A really small extension to Juergen Jungwirth's expression, to allow an optional space between the commas, and an additional decimal place, which is the format that Google often gives.
|
Matches |
"0,0“, „48.05, 11.9666679, „90,0“, „-90,-180“
|
Non-Matches |
„05.12345,0“, „90.1234,1“, „1,-180.1“, „0,1.1234567“
|
Author |
Rating:
Andy Jones
|
Displaying page
of
pages;
Items to