in reply to Re: Regexes: finding ALL matches (including overlap)
in thread Regexes: finding ALL matches (including overlap)
Easy: imagine I was matching m/\w.*\w.*\w/g instead. There really is no other possibility than have this return 20 matches (each \w has to match one of the 6 letters). Here are some more examples of what I would want (assuming I made no mathematical mistakes):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 . ?
|
|---|