From: Usano Date: 2002-12-19T13:34:19+09:00 Subject: How to include some text and exclude other in one regular expression? I would like to match "file 1 of 2" or "1 of 2", but not "day 1 of 2". I can match "file 1 of 2" with... /(file)? *\d+ *of *\d+/ I wonder if (in the same regex), I can prevent a match to "day 1 of 2"? The above expression will match this by just ignoring the word "day". Can this be done? Thank you, - Usano