Friday, February 10, 2012

Replace special characters.

Using following pattern to replace the special characters of string with empty values:
temp.replace(/[^a-zA-Z 0-9]+/g,'');


No comments:

Post a Comment