shadow_boi
Dec 9th 2008, 11:13 am
Hi,
I am wondering if there a build-in fuction that take a string as input and then replace every non-numbers, non-alphabet characters with "_" (underscore)?
Eg: yes? or no! will be converted to yes__or_no (i will use it as part of the URL)
I guess regular expression can do the trick?
Would anyone please give me the codes?
Thanks.
I am wondering if there a build-in fuction that take a string as input and then replace every non-numbers, non-alphabet characters with "_" (underscore)?
Eg: yes? or no! will be converted to yes__or_no (i will use it as part of the URL)
I guess regular expression can do the trick?
Would anyone please give me the codes?
Thanks.