#ifndef __REGEX_PCRE__ #define __REGEX_PCRE__ #include #include class PCRERegex { public: PCRERegex(const QString & str); ~PCRERegex(); int match(const QString & text); int isValid() { return (_compiled != NULL); } int hasMatched() { return _has_matched; } int ovector[90]; private: pcre * _compiled; pcre_extra * _extra; bool _has_matched; }; #endif /* __REGEX_PCRE__ */