Skip to content

Instantly share code, notes, and snippets.

@nomoregrapes
Created January 13, 2016 14:44
Show Gist options
  • Save nomoregrapes/f82f0571ec500c39014d to your computer and use it in GitHub Desktop.
Save nomoregrapes/f82f0571ec500c39014d to your computer and use it in GitHub Desktop.
Handy regex queries
#super-simple bounding box match
bbox\=([\+\-]?[0-9]+\.[0-9]+),([\+\-]?[0-9]+\.[0-9]+),([\+\-]?[0-9]+\.[0-9]+),([\+\-]?[0-9]+\.[0-9]+)
#bounding box, strictly matches long,lat,long,lat by limiting to +/-90 and +/-180
bbox\=([\+\-]?([0-9]|[0-8][0-9]|90)\.[0-9]+),([\+\-]?([0-9]|[0-9][0-9]|1[0-7][0-9]|180)\.[0-9]+),([\+\-]?([0-9]|[0-8][0-9]|90)\.[0-9]+),([\+\-]?([0-9]|[0-9][0-9]|1[0-7][0-9]|180)\.[0-9]+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment