|
Boost : |
Subject: Re: [boost] [regex] Matching space - help needed
From: Roman Yakovenko (roman.yakovenko_at_[hidden])
Date: 2008-11-24 15:18:06
On Mon, Nov 24, 2008 at 10:05 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> If you said
>
> boost::regex r("(\s)");
>
> then you actually mean
>
> boost::regex r("(\\s)");
>
> note the two backslashes--the compiler strips one of them.
Thanks for help.
I am aware of this and use the second form. I investigated the problem
father and found that "regex" class works, while "wregex" fails.
I guess there is some issue with "locale" or something like this. I
will debug this tomorrow.
-- Roman Yakovenko C++ Python language binding http://www.language-binding.net/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk