42 patt(pattern), caseIgnore(ignore) {
48 patt(rhs.patt), caseIgnore(rhs.caseIgnore) {
63 regmatch_t *pmatch = 0;
65 rc = regexec(
expr, s.data(), nmatch, pmatch, flags);
68 }
else if(rc == REG_NOMATCH) {
74 regerror(rc,
expr, buffer, 80);
86 int flags = REG_NOSUB;
The base class for all OPAL exceptions.
bool match(const std::string &s) const
Match a string against the pattern.
RegularExpression(const std::string &pattern, bool ignore=false)
Constructor.
bool OK() const
Check the regular expression for sanity.