string_replace_re added

This commit is contained in:
2021-10-24 11:23:44 +02:00
parent 4359012190
commit 79377476cb
5 changed files with 25 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
#include <regex>
void replace_substring(std::string &src, const std::string &substr, const std::string &replacement);
std::string replace_substring_regexp(const std::string &src, const std::string &substr, const std::string &replacement);
// Returns true if where contains regex
bool regexp_search(const std::string &where, const std::string &regex_str);