Help for this page

Select Code to Download


  1. or download this
    my $remove = quotemeta "{ (This Word) }";
    print $remove; # See what happened.
    
  2. or download this
    my $text   = 'to { (This Word) }';
    my $remove = '{ (This Word) }';
    
    $text =~ s/\R//g;
    $text =~ s/\Q$remove//; # <-- the \Q means quotemeta