RegexHelper class
Creates regex from a list of keywords.
Provides static functions rather than instancing a new RegexHelper object when need it.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
all(
{required List< String> keywords, bool searchWords = false}) → String -
Returns a regex String matching with all the words from the
keywords
. -
any(
{required List< String> keywords, bool searchWords = false}) → String -
Returns a regex String matching with any word from the
keywords
. -
flexAll(
{required List< String> keywords, bool searchWords = false}) → String -
Returns a regex String matching with all the words from the
keywords
but it does not need to be the perfect word like with all. -
flexAny(
{required List< String> keywords, bool searchWords = false}) → String -
Returns a regex String matching with any word from the
keywords
but it does not need to be the perfect word like with any.