Boost::regex match prefix problem

Hello all, I'm developing an application that uses boost::regex library and ms visual c++ 2003 (7.1). I'm trying to split a string into a smaller set of strings by using regex_split. However I would like to skip if the split character is prefixed by \. Typically I would use the following regex - (?<!\\); Where in c++ it would be something like std::string s("(?<!\\\\);") Compiles ok but I will get an exception when I try to use it as a parameter to the regex - boost::regex(s) So would appreciate any pointers or ideas or am I just doing I plainly wrong? Cheers & have a good day all. A. Johan -- "The roof, the roof, the roof is on fire..." -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.7.10/25 - Release Date: 21/06/2005

Typically I would use the following regex - (?<!\\);
Where in c++ it would be something like std::string s("(?<!\\\\);")
Compiles ok but I will get an exception when I try to use it as a parameter to the regex - boost::regex(s)
Lookbehind assertions aren't supported in Boost-1.32, but will be in 1.33. Boost-1.33 should be released soon, but in the mean time, I would suggest you grab a copy of the current Boost-cvs and use that. John.
participants (2)
-
A. Johan
-
John Maddock