Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $regex = qr/^($regex)$/m;
    
    printf "found %s at %d\n", $1, $-[0] if $text =~ $regex;