Skip to content

Instantly share code, notes, and snippets.

@baweaver
Created December 22, 2013 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baweaver/8077425 to your computer and use it in GitHub Desktop.
Save baweaver/8077425 to your computer and use it in GitHub Desktop.
Ruby regex for Latitude and Longitude
/\([+-]?((?=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