Boost logo

Boost Users :

Subject: Re: [Boost-users] [Regex] This pattern compiles fine for Perl and PCREbut not for Boost Regex
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-10-19 04:17:53


>Is there a way in Boost Regex to interpret a "{" as a literal character
>in the above context in a Perl regular expression, while still allowing the
> "{n,m}" bounded repeat in places where it is syntactically valid?

Yep, just escape the { and } and use \{abc\} which will work the same in
Perl/PCRE and Boost.

I hadn't realised Perl worked like that, can you file a bug report at
svn.boost.org so I don't forget this?

Thanks, John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net