Using pcre (with JIT) instead of pcrecpp

This commit is contained in:
Felipe Zimmerle
2015-09-17 19:26:44 -03:00
parent ed86c24df6
commit 2451bf05d7
4 changed files with 25 additions and 18 deletions

View File

@@ -36,13 +36,17 @@ class Rx : public Operator {
/** @ingroup ModSecurity_Operator */
Rx(std::string op, std::string param, bool negation)
: Operator(op, param, negation),
m_param(param) { }
m_param(param) {
Regex r(param);
m_re = &r;
}
bool evaluate(Assay *assay, const std::string &input);
std::list<std::string> matched;
private:
std::string m_param;
Regex *m_re;
};