What should I do if I want to use the matching string in
re.sub() as the replacement string?
I follow the method described in the document, but it does not print well.
Thank you for your cooperation.python regular-expression
We recommend using the Raw string in Metropolis's comment, but if you do not want to use the Raw string,
© 2022 OneMinuteCode. All rights reserved.