D
deja
Is there an easy (clean) method to replace all non-alpha numeric chars
in a string with and underscore?
for example:
I want to transform the following string:
"The book titled 'Ruby is Great' was written on 05/31/2006"
into:
"The_book_titled__Ruby is Great__was written on 05_31_2006"
Thank you in advance!
in a string with and underscore?
for example:
I want to transform the following string:
"The book titled 'Ruby is Great' was written on 05/31/2006"
into:
"The_book_titled__Ruby is Great__was written on 05_31_2006"
Thank you in advance!