Regular Expressions 101

Community Patterns

Longitude

0

Regular Expression
PCRE2 (PHP >=7.3)

/
((\-([1][0]|[0][1-9]))|([0][0-2]))\s([0-5][\d].[0-9]{3})
/
gm

Description

A definition of Longitude in the format DD MM.mmm within the range "-10 59.999" to "2 59.999"

Submitted by anonymous - 2 years ago