Community Patterns

Community Library Entry

0

Regular Expression
Created·2017-09-01 10:43
Flavor·PCRE (Legacy)

/
^\([+|-]*((90|[1-8][0-9]|[0-9])|(([1-8][0-9]|[0-9])\.\d+)|90\.[0]+)\,\s[+|-]*((180|1[0-7][0-9]|[1-9][0-9]|[0-9])|((1[0-7][0-9]|[1-9][0-9]|[0-9])[\.]\d+)|180\.[0]+)\)$
/
g
Open regex in editor

Description

Detecting Valid Latitude and Longitude Pairs HackerRank

Submitted by anonymous