Python re.sub with a flag does not replace all occurrences

前端 未结 3 1510
小蘑菇
小蘑菇 2020-11-22 10:12

The Python docs say:

re.MULTILINE: When specified, the pattern character \'^\' matches at the beginning of the string and at the beginning of each lin

3条回答
提交回复
热议问题