D
Davy
Hi all,
I have read a re.sub() that confused me.
s = 'P & Q'
s = re.sub(r'([a-zA-Z0-9_.]+)', r'Expr("\1")', s)
What's "\1" and the whole re.sub() mean?
Best regards,
Davy
I have read a re.sub() that confused me.
s = 'P & Q'
s = re.sub(r'([a-zA-Z0-9_.]+)', r'Expr("\1")', s)
What's "\1" and the whole re.sub() mean?
Best regards,
Davy