#include "regex.hh"
Public Types | |
enum | Flags : int32_t { DEFAULT , ERE , I , M , N , S , X , XX , J , U } |
Static Public Member Functions | |
static StringS | findall (const String ®ex, const String &input, Flags=DEFAULT) |
static String | grep (const String ®ex, const String &input, int group=0, Flags=DEFAULT) |
static ssize_t | search (const String ®ex, const String &input, Flags=DEFAULT) |
static String | sub (const String ®ex, const String &subst, const String &input, Flags=DEFAULT) |
static String | sub (const String ®ex, const String &subst, const String &input, uint count, Flags=DEFAULT) |
Wrapper for std::regex to simplify usage and reduce compilation time.
enum Flags : int32_t |
Find `regex` in `input` and return non-overlapping matches.
Find `regex` in `input` and return match position >= 0 or return < 0 otherwise.
|
static |
Find `regex` in `input` and return matching string.
|
static |
Substitute `regex` in `input` by `sbref` with backreferences `$00…$99` or `$&`.