0
Str.replace not better than re.sub?
if i know well, replace do the same, but faster. is it true or I missed somethin?
1 Réponse
+ 1
well str.replace works only on a specified string, while re.sub works with regular expressions allowing for more flexibility