Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^UTC[+-]\d{2}[:]\d{2}$
/
g

Description

This expression verify an UTC time like UTC+02:00 or UTC-12:30

Submitted by anonymous - 8 years ago