#include <plis_regexp.h>
Public Member Functions | |
Regexp (const char *rege, const char *flag_string="") | |
int | match (const std::string &targ) |
match a regular expression string | |
int | groups () |
Returns number of substrings in the last match operation. | |
Range | getgroup (int n) const |
Get a group from the last match operation. |
|
The constructor takes a regexp string as input and immediately compiles it. The compiled version will be saved until the class is destroyed. |