in reply to Re^2: Scurbbing a stringin thread Scrubbing a string
my $allowed = "pure"; my $re = "[^\Q$allowed\E]"; my $str = "p uuu+tr-ed"; $str =~ s/$re//g; print $str, "\n"; [download]