regex match two characters

C++
echo %H#E%L#L%O! | sed 's/[#%]//g'	#replaces every appearance of any of
two characters # and %
Source

Also in C++: