Regular Expression Parsing
Posted: Sun Nov 01, 2020 3:41 pm
I think somewhere along the way, the parsing for regular expressions broke.
I recently wanted to replace some text with a backslash, followed by an incremented value. I can't seem to get this to work:
\\\i{1,1,2,0}
On a whim, I tried unescaping the backslash, but that didn't work (didn't expect it to):
\\i{1,1,2,0}
This works, but doesn't have the preceding backslash:
\i{1,1,2,0}
I ending up having to do two transformations:
FOO\i{1,1,2,0}
then, replace the FOO with a backslash.
Thanks.
I recently wanted to replace some text with a backslash, followed by an incremented value. I can't seem to get this to work:
\\\i{1,1,2,0}
On a whim, I tried unescaping the backslash, but that didn't work (didn't expect it to):
\\i{1,1,2,0}
This works, but doesn't have the preceding backslash:
\i{1,1,2,0}
I ending up having to do two transformations:
FOO\i{1,1,2,0}
then, replace the FOO with a backslash.
Thanks.