I'm currently writing a routine to extract one, two and three word phrases from a string but with two or three word phrases I'm not getting all the phrases. For example
the string "blah blah blah" will show one ocurance of "blah blah" when really there is two.
My code is
while ($str =~ m/(\w+) (\w+)/g)
Any help would be appricated\