in reply to Regexes: finding ALL matches (including overlap)
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..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexes: finding ALL matches (including overlap)
by demerphq (Chancellor) on Jun 04, 2005 at 17:15 UTC | |
by nobull (Friar) on Jun 05, 2005 at 19:29 UTC | |
|
Re^2: Regexes: finding ALL matches (including overlap)
by kaif (Friar) on Jun 04, 2005 at 17:03 UTC |