javascript test string against multiple regex code example
Example: js regex replace multiple matches
str.replace(/-|:|\./g,''); // replace all matches of "-", ":" and "." in str
str.replace(/-|:|\./g,''); // replace all matches of "-", ":" and "." in str