http://www.perlmonks.org?node_id=393010


in reply to Re^2: nested combinations: algorithm advice?
in thread nested combinations: algorithm advice?

Glad you liked it. One caveat though - craft your regex with care if you use this (or use a hash like jasper's version below, which doesn't suffer from this problem). The regex I used was naive in that it doesn't detect the boundary between the words. Add "twop_threep" to DATA, you'll see a false positive.
  • Comment on Re^3: nested combinations: algorithm advice?