#ifndef NEWSBOAT_REGEXOWNER_H_ #define NEWSBOAT_REGEXOWNER_H_ #include #include #include #include #include #include namespace newsboat { class Regex { private: explicit Regex(const regex_t& r); public: ~Regex(); static std::unique_ptr compile(const std::string& reg_expression, int regcomp_flags, std::string& error); std::vector> matches(const std::string& input, int max_matches, int flags) const; private: regex_t regex; }; } // namespace newsboat #endif /* NEWSBOAT_REGEXOWNER_H_ */