Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(?:T(?:hur|ue)|Wed|Fri|S(?:at|un)|Mon) (?P<date>\d{1,2})$
/
i

Description

Thur 10 Tue 2 Mon 1 e.t.c

Submitted by anonymous - 8 years ago