pattern library
Functions
-
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 inexclude
no matches are returned. -
matchesFull(
Pattern pattern, String str) → bool -
Returns true if
pattern
has a single match instr
that matches the whole string, not a substring.