I'll see you and raise you. /(a*)/ (note * quantifier in place of +) matches, but captures nothing, not even a single 'a'.
>perl -wMstrict -le "my $s = 'xaxaaaaa'; print qq{matched, captured '$1'} if $s =~ /(a*)/; " matched, captured ''
In reply to Re^4: String Matching
by AnomalousMonk
in thread String Matching
by stevbutt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |