#pragma once #include #include #include #include #include namespace Balau { class Regex { public: typedef std::vector Captures; Regex(const char * regex, bool icase = false) throw (GeneralException); ~Regex(); Captures match(const char * str) throw (GeneralException); private: String getError(int err); regex_t m_regex; }; };