Hi. I want to match a string with a regexp patter similar to:
Basically, it would match anything except 'XfooX' and 'XbarX'.
The closest pattern I can come up with is '/X[^(foo|bar)]X/'.
This, however, doesn't work because ()'s lose their "special powers" within 's. Is there any simple way to do this? And if there's no simple way, what would be the complex way?