0 points

Javascript string replace with regex to strip off illegal characters - Stack Overflow


dashboard

Wed Sep 23 2020 10:22:32 GMT+0000 (UTC)

Posted by @rdemo #javascript

var cleanString = dirtyString.replace(/[|&;$%@"<>()+,]/g, "");
content_copy Copy

https://stackoverflow.com/questions/3780696/javascript-string-replace-with-regex-to-strip-off-illegal-characters