Dynamics CRM
Sunday, January 17, 2010
Remove/Replace special characters in a string
var temp = new String('This is a te!!!!st st>ring... So??? What...');
document.write(temp + '
');
temp = temp.replace(/[^a-zA-Z 0-9]+/g,'');
document.write(temp + '
');
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment