Try it out on these example inputs:

back to RegexSwap.

Week day

Regular expression:

^(Sun|Mon|(T(ues|hurs))|Fri)(day|\.)?$|Wed(\.|nesday)?$|Sat(\.|urday)?$|T((ue?)|(hu?r?))\.?$

Categories:

Popularity:

You need to be logged in to cast votes on regexes.

Good
2
Bad
0

Author description and comments (0)

Topic by
kasper

2009-01-06
11:17

Description

Defines an expression for matching weekdays. This expression validates both the short and long version of weekdays, but requires an upper-case first character, such as:
  • Mon
  • Tuesday
  • Thursday
  • Sat
  • Saturday

Hope it's useful, if not for anything else, then for composition with other expressions.

You need to be logged in to participate

In order to post your own comments on this regex, you need to be logged in.

Username:

Log in by clicking the login link at the top of the screen