Regular Expressions 101

Community Patterns

TimezoneOffset

7

Regular Expression
ECMAScript (JavaScript)

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

Description

used to parse timezone in the format -08:00 or +05:30

Submitted by Neha - 9 years ago