Help for this page

Select Code to Download


  1. or download this
    my $x="My name is VC";
    my $y="myname";
    ...
    if ($x =~ /($r)/) {
      printf "Matched from %d to %d: '%s'\n", $-[0], $+[0], $1;
    }
    
  2. or download this
    Matched from 0 to 7: 'My name'