Convert blank spaces to underscore in text string
I have a dynamic text string...(it is never the same) and I need to convert the blank spaces to underscores. For example....how do I convert the following text string;
'hj fdsffsf jojjkpko rewrrwrw'
...to the following -
'hj_fdsffsf_jojjkpko_rewrrwrw'
(Remember the text and the structure of the string is never the same)
Thanks in advance.
TK
|