On Sat, Oct 14, 2017 at 05:06:14PM +0200, Jürgen Spitzmüller wrote:
> 
> I'd be interested in the output of the attached debug code.

Here you go (actually, I get this twice):

BiblioInfo.cpp (253): match 0: %prename% {%prefix%[[%prefix% ]]}%surname%
BiblioInfo.cpp (253): match 1: %prename%
BiblioInfo.cpp (253): match 2: {%prefix%[[
BiblioInfo.cpp (253): match 3: %prefix%
BiblioInfo.cpp (253): match 4: ]]}
BiblioInfo.cpp (253): match 5: %surname%

So, everything seems fine, but 4 lines later "res += sub.str(5);" produces
"%prename% %surnamP" again!

> Another thing to try might be if the same problem occurs with
> boost::regex.

It doesn't seem so straightforward switching to boost.

-- 
Enrico

Reply via email to