Regular Expressions 101

Community Patterns

Community Library Entry

3

Regular Expression
ECMAScript (JavaScript)

/
^([+|-]{1})([0-1]{0,1}[0-9]{1}):([0-6]{0,1}[0-9]{1})$
/

Description

parses timezones in the format -08:00 or -8:0

Submitted by Neha Kadam - 10 years ago