Back to Library
Numbers

Lat/Long Coordinates

Matches decimal latitude and longitude pairs.

Pattern
^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$

Test Cases

40.7128,-74.0060 Match

Try it Live

Test and customize this pattern in our interactive editor

Open in Editor