Problem with standard regex

Kornel Benko kornel at
Sat Jan 2 11:47:13 UTC 2021

Given the string
	t = "\foreignlanguage{russian}{\texttt{\label}"
and trying to use
	"regex_replace(t, t,
leads to regex-exception.
Anything other than "\label" works. (e.g. "\xyzzy" or "\lxabel", or "\labelx")

Does anyone know, what's going on here?
(It does not even depend on "\texttt", because already
	t = "\foreignlanguage{russian}{\label"
leads to the exception.

-------------- 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