pattern library
Functions
-
escapeRegex(
String str) → String -
Escapes special regex characters in
strso 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
includeand returns all the matches. If the input string matches against any pattern inexcludeno matches are returned. -
matchesFull(
Pattern pattern, String str) → bool -
Returns true if
patternhas a single match instrthat matches the whole string, not a substring.