in reply to
Re^2: Can't match negated words.
in thread Can't match negated words.
I think it should look something like this?
No, I think not, for exactly the reasons I stated. But if you're convinced you're right, by all means, use your regex. It's not my program after all.
I can't really understand what the '.)*' means after the throw?
It doesn't make any sense at all. It's like asking what the "nd wh" in your question means. A dot means "match any character", and a star means "match the preceeding unit one or more times", but the closing parenthesis is belongs to the matching opening one.
However, if you don't understand the most basic regexp tokens, I urge you to first learn basic regexes, before continuing asking questions.