>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

Lars> ^ Is this really a space?
 
I think it is really a space. See for yourself:
  http://www-rocq.inria.fr/~lasgoutt/lyx/bug.log.gz

JMarc

Lars> Fix what?

Fix the bug :)

Lars> The regexp is correct, but sometimes the resulting substring
Lars> still contain a space, why? Or is it a problem with the regex...
Lars> [^ \\)]+ is supposed to math all chars except ' ' and ')' (one
Lars> or more)

AFAIK, the \\ is certainly not needed inside []. In fact I think the
regex should be changed to
        LRegex reg1("\\)* *\\(([^ )]+).*");
                     ^a backspace here, since we want a plain )
                                  ^no backspace here

However, Mark told me that it did not make any difference.

JMarc

Reply via email to