Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(?<=(UTC|GMT))([+-])((\d{2}:\d{2})|(\d{4}|\d{2}))\b
/
gmi

Description

match offset from utc offset string returned by the timeZoneName property of an Intl.DateTimeFormat object. (see MDN documentation here)

Submitted by Lagoffre - 4 months ago (Last modified 4 months ago)