i
Hate
Regex
Library
Cheatsheet
Community
Open playground
match latitude-longitude value
Regex title
Edit anything to remix
Remix in playground
JavaScript
Expression
/
Regular expression
^
(
(
\-
?
|
\+
?
)
?
\d
+
(
\.
\d
+
)
?
)
,
\s
*
(
(
\-
?
|
\+
?
)
?
\d
+
(
\.
\d
+
)
?
)
$
^((\-?|\+?)?\d+(\.\d+)?),\s*((\-?|\+?)?\d+(\.\d+)?)$
/
gm
g
i
m
s
u
y
flags
Test bench
Sample text
6 matches
+90.0, -127.554334
45, 180
-90.000, -180.0
20,80
47.1231231, 179.99999999
-90., -180.
045, 180
+90.0, -127.554334 45, 180 -90.000, -180.0 20,80 47.1231231, 179.99999999 -90., -180. 045, 180
Structure
Railroad diagram
Interactive
SVG
PNG
Copy
Embed
Live
Strings that match
+90.0, -127.554334
45, 180
-90.000, -180.0
20,80
47.1231231, 179.99999999
045, 180
Strings that don’t match
-90., -180.
Related patterns
mac address
match ethernet mac address
bitcoin address
match bitcoint addresses