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