0

Is there a DOTALL matching flag for boost::regex? The documentation shows:

static const match_flag_type match_not_dot_newline;
static const match_flag_type match_not_dot_null;

but no mention of regular DOTALL.

I'm trying to match a python regular expression written as

re.compile(r'<a(.*?)</a>', re.DOTALL)
whatWhat
  • 3,987
  • 7
  • 37
  • 44

1 Answers1

1

I think what you're looking for is the mod_s syntax_option_type. You can also use the inline modifier, (?s).

Alan Moore
  • 73,866
  • 12
  • 100
  • 156