Regular expressions (regex) are similar to Glob Patterns, but they can only be used for pattern matching, not for filename matching. Where in the documentation does it say that . This operator matches the string that comes before it against the regex pattern that follows it. Difference to Regular Expressions. Regex OR ( Not working) 1. One easy way to exclude text from a match is negative lookbehind: w+b(?