in reply to How to remove all repeating characters in a string in place
perl -e "$ARGV[0]=~s/a|b|f//g;print $ARGV[0]" aaabbcdeffgh cdegh
The s///g behaviour is introduced in perlrequick's Search and Replace part and in the Global Matching part of perlretut
HtH
L*
|
|---|