Problem with standard regex

Kornel Benko kornel at
Mon Jan 4 11:54:54 UTC 2021

Am Mon, 4 Jan 2021 12:23:47 +0200
schrieb Yuriy Skalko <yuriy.skalko at>:

> >> Further investigating shows the error in my own code (out of range access).
> >> The following exception was catched in the try {} section in findAdv(), so 
> >> the only
> >> message was: "Invalid regular expression!". This was misleading.
> > 
> > 
> > Indeed that's not very helpful. Ideally it would say *why* it is not valid.
> Maybe append additional exception message to that generic "Invalid..." 
> message as in attached patch?
> Yuriy

Thanks, you are right. But since the exception may not be only from regex, 'ex.what()'
alone feels better.

Please commit.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <>

More information about the lyx-devel mailing list