C字符串 (1) | template <class charT, class traits> bool regex_search (const charT* s, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
---|---|
字符串 (2) | template <class ST, class SA, char charT, class traits> bool regex_search (const basic_string<charT,ST,SA>& s, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
范围 (3) | template <class BidirectionalIterator, class charT, class traits> bool regex_search (BidirectionalIterator first, BidirectionalIterator last, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
带 match_results (4,5,6) | template <class charT, class Alloc, class traits> bool regex_search (const charT* s, match_results<const charT*, Alloc>& m, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default);template <class ST, class SA, class Alloc, class charT, class traits> bool regex_search (const basic_string<charT,ST,SA>& s, match_results<typename basic_string<charT,ST,SA>::const_iterator,Alloc>& m, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default);template <class BidirectionalIterator, class Alloc, class charT, class traits> bool regex_search (BidirectionalIterator first, BidirectionalIterator last, match_results<BidirectionalIterator, Alloc>& m, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
C字符串 (1) | template <class charT, class traits> bool regex_search (const charT* s, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
---|---|
字符串 (2) | template <class ST, class SA, char charT, class traits> bool regex_search (const basic_string<charT,ST,SA>& s, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
范围 (3) | template <class BidirectionalIterator, class charT, class traits> bool regex_search (BidirectionalIterator first, BidirectionalIterator last, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
带 match_results (4,5,6) | template <class charT, class Alloc, class traits> bool regex_search (const charT* s, match_results<const charT*, Alloc>& m, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default);template <class ST, class SA, class Alloc, class charT, class traits> bool regex_search (const basic_string<charT,ST,SA>& s, match_results<typename basic_string<charT,ST,SA>::const_iterator,Alloc>& m, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default);template <class BidirectionalIterator, class Alloc, class charT, class traits> bool regex_search (BidirectionalIterator first, BidirectionalIterator last, match_results<BidirectionalIterator, Alloc>& m, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
移动字符串(已删除)(7) | template <class ST, class SA, class Alloc, class charT, class traits> bool regex_search (const basic_string<charT,ST,SA>&&, match_results<typename basic_string<charT,ST,SA>::const_iterator,Alloc>&, const basic_regex<charT,traits>&, regex_constants::match_flag_type=regex_constants::match_default) = delete; |
flag* | 对匹配的影响 | 说明 |
---|---|---|
match_default | 默认 | 默认匹配行为。 此常量的值为零**。 |
match_not_bol | 非行首 | 第一个字符不被视为“行首”("^"不匹配)。 |
match_not_eol | 非行尾 | 最后一个字符不被视为“行尾”("$"不匹配)。 |
match_not_bow | 非词首 | 转义序列"\b"不匹配为“词首”。 |
match_not_eow | 非词尾 | 转义序列"\b"不匹配为“词尾”。 |
match_any | 任意匹配 | 如果可能存在多个匹配,则接受任意一个匹配。 |
match_not_null | 非空 | 空序列不匹配。 |
match_continuous | 连续 | 表达式必须匹配从第一个字符开始的子序列。 子序列必须从第一个字符开始才能匹配。 |
match_prev_avail | 前一个可用 | 第一个字符之前存在一个或多个字符。(match_not_bol和match_not_bow被忽略) |
format_default | 默认 | 与...相同match_default. 此常量的值为零**。 |
format_sed | 无 | 此函数忽略。 有关更多信息,请参阅regex_constants。 |
format_no_copy | ||
format_first_only |
|
|
Target sequence: this subject has a submarine as subsequence Regular expression: /\b(sub)([^ ]*)/ The following matches and submatches were found: subject sub ject submarine sub marine subsequence sub sequence |