Apr-11-2020, 12:00 PM
(This post was last modified: Apr-11-2020, 12:00 PM by ClassicalSoul.)
Is there any difference between
re.sub(r"\W", v, s)
and re.sub(r"\W+", v, s)
? Won't they both equally replace all non-alphanumeric characters in s
with v
?