Static Public Member Functions | List of all members
RegexFunctions Class Reference

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...
 

Detailed Description

A Helper class that encapsulates the regex operations.

Member Function Documentation

StringArray getFirstMatch ( const String &  wildcard,
const String &  stringToTest 
)
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.

bool matchesWildcard ( const String &  wildcard,
const String &  stringToTest 
)
static

Checks if the given string matches the regex wildcard.

StringArray search ( const String &  wildcard,
const String &  stringToTest,
int  indexInMatch = 0 
)
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).

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.