28 regex_(pattern, std::regex_constants::ECMAScript | std::regex_constants::optimize)
40 const std::cmatch&
Expression::apply(std::string_view::const_iterator begin, std::string_view::const_iterator end) {
41 std::regex_search(begin, end,
match, this->
regex_, std::regex_constants::match_default);
static std::cmatch match
Object used to store regex matches.
std::vector< std::shared_ptr< Matcher > > & matchers() noexcept
Returns the array of the receiver's matchers.
const std::cmatch & apply(std::string_view::const_iterator begin, std::string_view::const_iterator end)
Apply the regex and find matches in the given string.
Expression(const std::string &pattern) noexcept
Construct a new Expression object.
std::vector< std::shared_ptr< Matcher > > matchers_
Matchers associated with the receiver.
std::regex regex_
Regex object.