Help for this page

Select Code to Download


  1. or download this
    my @all_patterns = (
        qr/#.*/,
    ...
        qr/^,/,
        # ... and so on ...
    );
    
  2. or download this
     
    sub apply_patterns {
        my ($string, @indexes) = @_;
    ...
            s/$regex//;
        }
    }