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"
Subject: Re: [Boost-users] a problem about boost::regex To: Message-ID: <002d01c8a794$0d593e50$eeea0352@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.