Help for this page

Select Code to Download


  1. or download this
    $_ = 'ab';
    s/^(a{1,3})(?=b)/$1a/g; # => $_ = 'aab'
    
  2. or download this
    $_ = 'ab';
    s/^(a{1,3})(?=b)/pos = 0, $1 . 'a'/eg; # still, $_ => 'aab'