Boost logo

Boost Users :

Subject: Re: [Boost-users] [Regex] Search Substring with paranthesis
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2011-03-15 09:06:38


2011/3/15 Subhash Nagre <snagre.mumbai_at_[hidden]>

> Hello,
> I have a string "(123) Hello" and I want to seach String (123) using
> boost::regex,
> Also I needed to do a full word search, so I added \b in the end.
> Here is my code
>
> std::string searchWord = "(123)";

Try "\\(123\\)".

Roman Perepelitsa.



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