Regular Expressions 101

Google Maps URL Coordinates

Open Workspace
  • PCRE (Legacy)
  • Match
1

Regular Expression

/
@([0-9\.]+),([0-9\.]+),([0-9z]+)
/

Description

Find the GPS coordinates in a Google Maps' URL ex. : https://www.google.fr/maps/place/Nancy/@48.6880809,6.173437,14z/data=!3m1!4b1!4m2!3m1!1s0x4794986e17a692cd:0x4ed671b10d82498d

Get these :

lat : 48.6880809 long : 6.173437 zoom level : 14

Submitted by Cédric Anamorphik