42 inline bool init(std::string_view regex_str,
bool ignore_case) {
46 const std::regex::flag_type flag = ignore_case
47 ? (std::regex::ECMAScript | std::regex::icase)
48 : std::regex::ECMAScript;
50 re_.assign(regex_str.data(), regex_str.length(), flag);
53 catch (
const std::regex_error&) {