This library contains utilities for working with RegExps and other Patterns.


A Pattern that matches against filesystem path-like strings with wildcards. [...]


escapeRegex(String str) String
Escapes special regex characters in str so that it can be used as a literal match inside of a RegExp. [...]
matchAny(Iterable<Pattern> include, { Iterable<Pattern> exclude }) Pattern
Returns a Pattern that matches against every pattern in include and returns all the matches. If the input string matches against any pattern in exclude no matches are returned.
matchesFull(Pattern pattern, String str) bool
Returns true if pattern has a single match in str that matches the whole string, not a substring.