- Moderator
- #21
Agree, Then regexp this should work:was expecting a full path+file match, which might explain why searching for \Extras\ or /Extras/ can fail if the folder string does not contain the 'slash' at the end.
Code:
([/\\]((sample)|(extra)|(trailer))s?[/\\]?)
Code:
match = expr.Match(file.DirectoryName).Success;
Code:
match = expr.Match(file.FullName).Success;