how to convert all non a-z characters to whitespace code example Example: replace non alphanumeric javascript text.replace(/[\W_]+/g," ");