Created
December 22, 2013 01:31
-
-
Save baweaver/8077425 to your computer and use it in GitHub Desktop.
Ruby regex for Latitude and Longitude
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/\([+-]?((?=9)90(\.0+)?|[1-8]?\d(\.\d+)?), [+-]?((?=1\d{2})((?=18\d)180(\.0+)?|1[0-7]\d(\.\d+)?)|\d{2}(\.\d+)?)\)/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment