RegExpX extension

Extension methods for RegExp.

on

Methods

firstGroup(String input, [int group = 0]) → String?

Available on RegExp, provided by the RegExpX extension

Returns matched group string at group index for the first match in input, or null.
matchesAll(Iterable<String> inputs) → bool

Available on RegExp, provided by the RegExpX extension

Returns true if all items in inputs match this regular expression.
matchesAny(Iterable<String> inputs) → bool

Available on RegExp, provided by the RegExpX extension

Returns true if any item in inputs matches this regular expression.