Match everything except for specified strings

Posted by Alfred on Stack Overflow See other posts from Stack Overflow or by Alfred
Published on 2010-03-08T19:17:22Z Indexed on 2010/03/08 19:21 UTC
Read the original article Hit count: 240

Filed under:

I know that the following regex will match "red", "green", or "blue".

red|green|blue

Is there a straightforward way of making it match everything except several specified strings?

© Stack Overflow or respective owner

Related posts about regex