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


in reply to Re^3: match sequences of words based on number of characters
in thread match sequences of words based on number of characters

I think that the sub I wrote below does the trick, but I only did limited testing on it.
  • Comment on Re^4: match sequences of words based on number of characters