|
Boost Users : |
From: Guo Xu (goooxu_at_[hidden])
Date: 2008-04-28 00:02:09
Hi, John
I have a string splited by "\0" ( it means {'\\','0'}, the bellow is the
same ),
for example: "\0xxxx\0yyyy\0zzzz\0".
And there is some special situation like
"\0xxx\\0\0yyy\\\0zzz\0" , you can think it is similarly to c style string,
the two '\\' means a single '\'
and the '\\0' is not a spliter.
i want to split them in to
0) xxx\\0
1) yyy\\
c) zzz
how can i do it in boost::regex?
thx,all
> Message: 7
> Date: Sat, 26 Apr 2008 12:52:43 +0100
> From: "John Maddock" <john_at_[hidden]>
> Subject: Re: [Boost-users] a problem about boost::regex
> To: <boost-users_at_[hidden]>
> Message-ID: <002d01c8a794$0d593e50$eeea0352_at_fuji>
> Content-Type: text/plain; format=flowed; charset="UTF-8";
> reply-type=original
>
> Guo Xu wrote:
> >> a regex expression:
> >> (?<=[^\\](?:\\\\)*)\\0
> >> can work well in c#, but error in boost::regex
> >> why?
>
> Variable length lookbehind isn't supported in Boost.Regex (or in Perl for
> that matter).
>
> Regards, 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