Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-11-17 15:22
Flavor·ECMAScript (JavaScript)

/
^(\d+)°(\d+)[′'](\d*\.?\d*)[″"']*(\d*)\s*[NEWS]?$
/
s
Open regex in editor

Description

extract numbers from DMS (degrees, minutes, seconds).

33°28′17″ N ----> 33 / 28 / 17

Submitted by anonymous