A Helper class that encapsulates the regex operations. More...
Static Public Member Functions | |
static StringArray | getFirstMatch (const String &wildcard, const String &stringToTest) |
Returns the first match of the given wildcard in the test string. More... | |
static bool | matchesWildcard (const String &wildcard, const String &stringToTest) |
Checks if the given string matches the regex wildcard. More... | |
static StringArray | search (const String &wildcard, const String &stringToTest, int indexInMatch=0) |
Searches a string and returns a StringArray with all matches. More... | |
A Helper class that encapsulates the regex operations.
|
static |
Returns the first match of the given wildcard in the test string.
The first entry will be the whole match, followed by capture groups.
|
static |
Checks if the given string matches the regex wildcard.
|
static |
Searches a string and returns a StringArray with all matches.
You can specify and index of a capture group (if not, the entire match will be used).