Help for this page

Select Code to Download


  1. or download this
    $line =~ m{(\d+)}g;
    my $pos = pos($line) - length $1;
    
  2. or download this
    $line =~ m{\d+};
    my $pos = length $`;
    
  3. or download this
    $line =~ m{\d+}g;
    my $pos = pos($line) - length $&;
    
  4. or download this
    $line =~ m{\d+};
    my $pos = $-[0];