Need a function to strip off a set of illegal character in javascript: |&;$%@\"<>()+,
|&;$%@\"<>()+,
This is a classic problem to be solved with regexes, whi
Put them in brackets []:
[]
var cleanString = dirtyString.replace(/[\|&;\$%@"<>\(\)\+,]/g, "");