Hi!
I’m not an expert in regular expressions and this seems like a trivial problem to me. Unfortunatley I couldn’t find anything by googling.
Problem: I want to replace a \s
in a regular expression with \t
. This is what I tried:
replace("x 3", r"x (?<x>\d*)", s"y\t\g<x>")
But I get a Bad replacement string
error. Also other special characters like \s
and '\ndon't work. Am I missing something or doing something wrong? Unfortunatley things like
s"\t"yield a literal
"\t"`.