0

boost::regex 是否有一个 DOTALL 匹配标志?文档显示:

static const match_flag_type match_not_dot_newline;
static const match_flag_type match_not_dot_null;

但没有提到常规的 DOTALL。

我正在尝试匹配写为的python正则表达式

re.compile(r'<a(.*?)</a>', re.DOTALL)
4

1 回答 1

1

我认为您正在寻找的是mod_s syntax_option_type。您也可以使用内联修饰符(?s).

于 2009-11-11T05:00:45.747 回答