regular expression match Thursday, Thurs, Thur,Thu
问题 I want a regexp to match partial weekday names. For example, I want to match "Thursday", "thurs", "thur" or "Thu". I tried "thu(rsday)?", but that only matched "thu" and "thursday". The complete regular expression to match abbreviated weekdays would be excessively long. I tried this regex string: Mon(day)?|Tue(sday)?|Wed(nesday)?|Thu(rsday)?|Fri(day)?|Sat(urday)?|Sun(day)? The strings I have look like this: 3-Dec Mon 1:00pm Premiere USPHL Sk3-Red 4-Dec Tue 8:10pm U16 USPHL Sk3-Red 6-Dec Thur