On Tue, Mar 27, 2001 at 11:46:05AM +0200, Jean-Marc Lasgouttes wrote:
> 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.

But the regex should still be changed to the correct form.

Reply via email to