@guy038, All:
I usually try to understand OP’s messages as literally as possible, unless it is very obvious that there is some mistake, such as the single quotation mark. In this case I read words and thought they were single words, unconnected to each other, but not necessarily on separate lines. Hence the regular expression I posted.
Nor did it cross my mind that there could be hyphenated compound words, since the posted sample did not include them.
However, the scenario that you propose is entirely possible and in fact your two regular expressions are simpler than mine. If I were OP, I would choose one of them.
Have a nice weekend