Answers for "replace several words regex"

3

regex match several words

# To match the entire line which contains one of foo, man, choo:
^.*(foo|man|choo).*$
Posted by: Guest on June-11-2020
0

js regex replace multiple matches

str.replace(/-|:|./g,''); // replace all matches of "-", ":" and "." in str
Posted by: Guest on September-22-2020

Browse Popular Code Answers by Language