What's best performing script to replace certain characters with a maximum of one other character?
For instance, I need to replace all spaces () and commas (
,
) with plus signs (+
) but no more than one plus sign at a time
So: the,quick, brown fox jumped, over the,, lazy, dog
Would become: the+quick+brown+fox+jumped+over+the+lazy+dog