Thank you Martin.
I left out one of the needs - if any of the specified words are not encountered, I want to match the whole line.
Again, matching the behavior of this regex except with words, not characters: ^([^d]+)
When I use positive lookahead, I encounter two problems:
- a positive lookahead by itself causes the match to fail if the word is not encountered.
- a positive lookahead combined with another option ( &specified_words / word ) is apparently an infinite loop.
When I encounter the specified word, I want to either stop the match *without failing*, or match the rest of the string but segregate it from the part before the specified word.
In other words, I don't want to just fail.
I'll try to add my grammar and some samples.
Thank you again. Your comments inspired several new attempts.
-Kelly