var str = 'some string'; var regex1 = ?????; str = str.replace(regex1, '-');
regex2 = ?????; str = str.replace(regex2, '');
/\s/g
/[^a-zA-Z0-9]/g
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)