Regular Expressions 101

Community Patterns

Your search did not match anything

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

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

Description

Format : Lat,Long

Range:

  • Lat: [-90; 90]
  • Long: [-180, 180]
Submitted by Johan JANIN (https://johan-janin.com) - a month ago