Quote:
Originally Posted by Arkshine
replace_all() uses more code and is supposed to be used to avoid infinite replacement, but here it won't happen, so it's fine while + replace. Btw, I agree with Bugsy.
|
I know why replace_all() exists and why it's not required here, but, I would also think that there are fewer iterations overall (internally) using replace_all() when there is more than one of the same string to be replaced.
__________________