ionutb - tech & more
Wednesday, May 11, 2011
Javascript Regexp Replace
Replace characters using regular expressions in JavaScript.
string = string.replace(new RegExp('[^a-z0-9 ._-]', 'gim'), '');
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment