Help for this page

Select Code to Download


  1. or download this
     s/(?<=[a-z])-(?=[a-z])/ /g;
    
  2. or download this
    my %replacement;
    
    ...
    for my $item ( keys %replacement ) {
        s/$item/$replacement{$item}/g;
    }
    
  3. or download this
    my $replacements = 
     [
    ...
    for my $edit ( @$replacements ) {
        s/$$edit[0]/$$edit[1]/;
    }