I would want "abcdef" =~ m/..*..*./g to return 20 = 6 choose 3 matches.
Hmmm... that's not quite the same thing I was talking about. How is Perl to know that .* is different from . ?
As far as my solution (actually largely due to abigail) is concerned /..*..*../ is simply /.{4,}/ and all matches thereof in "abcdef" would be 6..
In reply to Re: Regexes: finding ALL matches (including overlap)
by nobull
in thread Regexes: finding ALL matches (including overlap)
by kaif
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |