Hi, the attached patch (advsearch branch) is also needed in order to have regexps work correctly.
T.
Index: src/output_latex.cpp =================================================================== --- src/output_latex.cpp (revisione 27225) +++ src/output_latex.cpp (copia locale) @@ -528,7 +528,7 @@ // FIXME UNICODE os << from_utf8(everypar); bool need_par = pit->latex(bparams, outerfont, - os, texrow, runparams); + os, texrow, runparams, start_pos, end_pos); // Make sure that \\par is done with the font of the last // character if this has another size as the default.