Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(\s?\d{1,2}:\d{1,2})+$
/

Description

Verifies a cron schedule pattern such as: 10:45 or multiple times such as: 11:00 22:10 23:15

Submitted by Michael Sundgaard - 9 years ago