If a have a string like:
“_test_teste2 _test3”
how can I add a space before the _ that don’t have a space before already and are not in the start of the string?
Ex:
“_test _teste2 _test3”
I tried this:
todo.desc = todo.desc.gsub /_/, " _"
It works, but add spaces after every _.
Thanks in advance.
1 Answer