Ase::Re class final

Wrapper for std::regex to simplify usage and reduce compilation time.

Public static functions

static auto findall(const String& regex, const String& input, Flags = DEFAULT) →  StringS
Find regex in input and return non-overlapping matches.
static auto grep(const String& regex, const String& input, int group = 0, Flags = DEFAULT) →  String
Find regex in input and return matching string.
static auto search(const String& regex, const String& input, Flags = DEFAULT) →  ssize_t
Find regex in input and return match position >= 0 or return < 0 otherwise.
static auto sub(const String& regex, const String& sbref, const String& input, Flags = DEFAULT) →  String
Substitute regex in input by sbref with backreferences $00…$99 or $&.
static auto subn(const String& regex, const String& subst, const String& input, uint count = 0, Flags = DEFAULT) →  String
Substitute regex in input with subst up to count times.