in reply to Regexp: Match anything except a certain word

See the "Matching a pattern that doesn't include another pattern" section of the Using Look-ahead and Look-behind tutorial.

Caution: Contents may have been coded under pressure.
  • Comment on Re: Regexp: Match anything except a certain word