Dear ALL,
I have strings with some embedded characters as follows:
s := '\i{}This is a string\i0{}'
I want to get rid of the \{} and \i0{} using the following regex:
e := '\\i\d*{}'
But when I attempt this:
n := ReplaceRegExpr(e, s, '', True);
I get the error:
TRegrExpr(comp): Nested *?+ (pos 6)
The above regex works in Python (as n = re.sub(e, '', s)), but obviously the FPC implementation is different.
Could someone give me a hand?
Thanks in advance!
Best regards,