...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::xpressive::regex_match — See if a regex matches a sequence from beginning to end.
template<typename OtherBidiIter, typename BidiIter> bool regex_match(OtherBidiIter begin, OtherBidiIter end, match_results< BidiIter > & what, basic_regex< BidiIter > const & re, regex_constants::match_flag_type flags = regex_constants::match_default); template<typename OtherBidiIter, typename BidiIter> bool regex_match(OtherBidiIter begin, OtherBidiIter end, basic_regex< BidiIter > const & re, regex_constants::match_flag_type flags = regex_constants::match_default); template<typename Char> bool regex_match(Char * begin, match_results< Char * > & what, basic_regex< Char * > const & re, regex_constants::match_flag_type flags = regex_constants::match_default); template<typename BidiRange, typename BidiIter> bool regex_match(BidiRange & rng, match_results< BidiIter > & what, basic_regex< BidiIter > const & re, regex_constants::match_flag_type flags = regex_constants::match_default, typename disable_if< is_pointer< BidiRange > >::type * = 0); template<typename BidiRange, typename BidiIter> bool regex_match(BidiRange const & rng, match_results< BidiIter > & what, basic_regex< BidiIter > const & re, regex_constants::match_flag_type flags = regex_constants::match_default, typename disable_if< is_pointer< BidiRange > >::type * = 0); template<typename Char> bool regex_match(Char * begin, basic_regex< Char * > const & re, regex_constants::match_flag_type flags = regex_constants::match_default); template<typename BidiRange, typename BidiIter> bool regex_match(BidiRange & rng, basic_regex< BidiIter > const & re, regex_constants::match_flag_type flags = regex_constants::match_default, typename disable_if< is_pointer< BidiRange > >::type * = 0); template<typename BidiRange, typename BidiIter> bool regex_match(BidiRange const & rng, basic_regex< BidiIter > const & re, regex_constants::match_flag_type flags = regex_constants::match_default, typename disable_if< is_pointer< BidiRange > >::type * = 0);
Determines whether there is an exact match between the regular expression re, and all of the sequence [begin, end).
Parameters: |
|
||||||||||
Requires: |
Types BidiIter and OtherBidiIter meet the requirements of a Bidirectional Iterator (24.1.4). OtherBidiIter is convertible to BidiIter. [begin,end) denotes a valid iterator range. |
||||||||||
Returns: |
true if a match is found, false otherwise |
||||||||||
Throws: |