Fix incorrect use of flags in re.sub()
The 4th argument of re.sub() is maximum number of substitutions, not flags. re.M affects only semantics of ^ and $, so it wouldn't have any effect on this regexp.
Showing
Please register or sign in to comment