In Perl, we can do this
$str =~ /\d{3}\Q(a.o.e).u.i.y\E\w+/;
where, between \Q
and \E
, (a.o.e).u.i.y
is a literal string within which all metacharacters such as parentheses and dots are all treated as literal characters. What is the counterpart syntax for C++11's regex or Boost's regex? Thanks.
Aucun commentaire:
Enregistrer un commentaire