Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.regex expression construction
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2010-03-11 10:43:41


>Shaolin wrote:
>
>>Hi Guys
>
>I am using boost.regex to check whether a string has opening and closing brackets. The problem is the expression doesnt work. I have tried all sorts of combos and read up the doc too to no avail. Can someone tell me whether the following does what its supposed to (i.e. look for opening/closing brackets in a string):
>
>boost::regex e("[\\(\\)]"); /*check for opening/closing brackets*/
>
>Regards

I'm afraid it's not clear enough what you are trying to match here. Perhaps you could give us an example of a string which would match the expression?

Regards,
Gevorg


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