Help for this page

Select Code to Download


  1. or download this
    my $s = 'variable chars anchor want this';
    
  2. or download this
    $s = 'anchor want this';
    
  3. or download this
    if( $s =~ m/^.*?(anchor.*)$/ ){ $s = $1; }
    
  4. or download this
    if( $s =~ m/^(.*?)anchor/ ){ my $bad = $1; $s =~ s/$bad//; }
    
  5. or download this
    $s =~ s/^.*?anchor/anchor/;
    
  6. or download this
    e.g., loops that utilize reverse, chop, split, ...