Perform a regular expression match. Note that this method internally
allocates and then frees a C pcre object each time it is called. If you
want to run the same regex search multiple times on different input, you
are probably better off using the compile() method, above.
Usage:
auto regex = new PCRE;
bool match = regex.preg_match("Hello World!", "^Hello");
Perform a regular expression match. Note that this method internally allocates and then frees a C pcre object each time it is called. If you want to run the same regex search multiple times on different input, you are probably better off using the compile() method, above.
Usage: auto regex = new PCRE; bool match = regex.preg_match("Hello World!", "^Hello");