Python 3 interprets string literals as Unicode strings, and therefore your d
is treated as an escaped Unicode character.
Declare your RegEx pattern as a raw string instead by prepending r
, as below:
r'
Revision: (d+)
'
This also means you can drop the escapes for
as well since these will just be parsed as newline characters by re
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…