regex_constants::match_flag_type

正则表达式匹配选项的标志。

typedef T2 match_flag_type;
static const match_flag_type match_any, match_default, match_not_bol,
  match_not_bow, match_continuous, match_not_eol, match_not_eow,
  match_not_null, match_partial, match_prev_avail;

备注

该类型是描述要使用的选项的位掩码类型,令牌使用与正则表达式和格式的文本序列,在替换文本时。选项结合使用|.

与选项是:

match_default

match_not_bol --不将在目标序列中的第一个位置作为行首

match_not_eol --不将在目标序列的传入的结束位置为行尾

match_not_bow --不将在目标序列中的第一个位置以单词的开头

match_not_eow --不将在目标序列的传入的结束位置以单词结尾

match_any --如果多个匹配项是可能的所有匹配项是可接受的。

match_not_null --不将空 subsequence 作为匹配

match_continuous --除了在目标序列开始处外,不搜索匹配

match_prev_avail -- --first 是有效的迭代器;忽略 match_not_bol 和 match_not_bow ,如果设置

格式标志是:

format_default --使用 ECMAScript 布局规则

format_sed --使用 SED 布局规则

format_no_copy --不复制不符合该正则表达式的文本

format_first_only --不搜索与第一步骤后

要求

**标题:**regex

命名空间: std

请参见

参考

<regex>

regex_constants Class

其他资源

regex 成员