Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
([Mm]on|[Tt](?:hurs|ues)|[Ww]ednes|[Ff]ri|[Ss](?:un|atur))(?: |,|day(?: |,|(?:'|)s))|[Ee]veryday|[Ww]eekday|[Ww]eekend
/
g

Description

Given a string, finds the days spoken about within the string. (US Implementation)

Submitted by anonymous - 8 years ago