Boost logo

Boost Users :

From: Stefan Shishkov (stefan_at_[hidden])
Date: 2003-11-17 05:35:07

Hi Paul

I tried your example on VC++. It does not crash but throws
boost::bad_expression with message: "Unmatched \{". I think that you should
modify your pattern to "(value|default)[^}]*\\{". Otherwise the backslash
is ignored (VC++ gives a warning about that) and regex treats '{' as the
start of the bounds operator "{}" - as result a closing '}' is expected.


----- Original Message -----
From: "Paul Scruby" <boost_at_[hidden]>
To: <boost-users_at_[hidden]>
Sent: Sunday, November 16, 2003 8:37 PM
Subject: [Boost-users] regex problems

> The boost::regex class is crashing when I construct it with some regular
> expressions. For example: "(value|default)[^}]*\{" will crash and
> "value|default" does not.
> Is this a bug, or am I doing something wrong? I am running gcc2.96 and
> boost1.30.2. I have attached an example src including Makefile.
> Thanks in advance,
> Paul


> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at