Help for this page

Select Code to Download


  1. or download this
    @badwords = map { my $regex = join '\W*', (split //, $_);
                      qr/$regex/i;
    ...
    foreach (@badwords) {
        $string =~ s/$_/<expletive>/gc;
    }