|
|
|
|
|
by paulddraper
3797 days ago
|
|
It replaces the (nonoverlapping) occurrences of " " with "" in str. Regexes have facilities for case insensitive replace, as in most languages. Maybe I've been programming in Python too long, but str.replace is intuitive to me (unlike, say PHP's str_replace).
I'm guessing you don't program in Python much, judging by your question of string copying. |
|