string regex function added

This commit is contained in:
2021-10-26 22:02:40 +02:00
parent 8d90513a6b
commit 80d7935974
6 changed files with 93 additions and 5 deletions

View File

@@ -9,6 +9,8 @@ std::string replace_substring_regexp(const std::string &src, const std::string &
// Returns true if where contains regex
bool regexp_search(const std::string &where, const std::string &regex_str);
// Returns list of contained regex patterns
std::vector<std::vector<std::string>> regexp_search2(const std::string &where, const std::string &regex_str, bool match_mode, bool ignore_case);
std::vector<std::string> regexp_strsplit(const std::string &string_to_split, const std::string &rgx_str);