R
Raterus
Hello,
I'd like to take a string like this "one two three four five"
and make it like this "one two three four five"
essentially replacing >1 spaces with 1. Can I do this somehow with the built-in functions?, I haven't found a way yet. I've tried using replace(" ", " "), but this has to be ran an unknown amount of times to trim down the string.
Thanks,
--Michael
I'd like to take a string like this "one two three four five"
and make it like this "one two three four five"
essentially replacing >1 spaces with 1. Can I do this somehow with the built-in functions?, I haven't found a way yet. I've tried using replace(" ", " "), but this has to be ran an unknown amount of times to trim down the string.
Thanks,
--Michael