- or download this
#!/usr/bin/perl -w
"abcde" =~ /(..)(?:(....)|(..))/;
...
# $3 is 'cd'
print length($2);
- or download this
#!/usr/bin/perl -w
print length($foo);
- or download this
/* n is the number in $N */
if (
...
(e = rx->endp[n]) != -1
) return e - s;
return 0;