Help for this page

Select Code to Download


  1. or download this
    sub regindex {
      my ($str, $rx, $pos) = @_;
    ...
      $str =~ /$rx/g or return -1;
      return $-[0];
    }