regex match two words code example
Example 1: regex match several words
# To match the entire line which contains one of foo, man, choo:
^.*(foo|man|choo).*$
Example 2: regex match two characters
echo %H#E%L#L%O! | sed 's/[#%]//g' #replaces every appearance of any of
two characters # and %