in reply to Scrubbing a string
my ( $s1, $s2 ) = ( 'pure', 'pppp!u-r-*e' );
my $re = eval "qr/[^$s1]/";
$s2 =~ s/$re//g;
print $s2; # ppppure
15 years from now, by which time it will be a completely different language
It's just a number, so who cares?
Results (150 votes). Check out past polls.