Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(?<degrees>^-?\d{1,3})(?:°|d|D)(?<minutes>[012345]?\d)(?:'|m|M)(?<seconds>[012345]?\d(?:\.\d*)?)(?:"|s|S)$
/
mg

Description

no description available

Submitted by Karsten - 9 years ago