I have a string var string = "my__st_ri_ng"
. I want to replace all underscores with single space and I want to store it it another variable. Each underscore should have a space replacement, which means multiple consecutive underscores should have respective number of empty spaces. I want to get my mentioned variable as my<sp><sp>st<sp>ri<sp>ng
. How can I do this using jquery??
Thanks in advance...:)
blasteralfred