$str =~ s/http:\/\///g; # and $str =~ s|http://||g; $str =~ s#http://##g; $str =~ s!http://!!g; #### $str =~ s!(/\*[^/]+\*/)!>>>> \1 <<<>>> \1 <<<## $str =~ s!(fancy re here)! print "$1\n"; "" !ge;