Page 1 of 1

exact match

PostPosted: Tue Jan 15, 2002 10:09 pm
by jimfr
Sorry, but I can't find the regular expression tips page on the website any more...

Can someone tell me how to do a file filter that matches an exact file name? That is, if the filter is Mysong.mp3, I want it to match Mysong.mp3, but not 1Mysong.mp3 or Mysong.mp34567?

Thanks,

jim

RE: exact match

PostPosted: Wed Jan 16, 2002 12:13 am
by dexter
Hmm, I can't find it either. I must have lost it the last time I revamped the site. To get an exact match with white space on either side, [ ]Mysong\.mp3[ ] where there is a space between the brackets. The backslash escapes the period because in regex, the period means "Match any single character" by itself.