Regular Expression not contain a word list
<p>I'm trying to create a regular expression
to match a string which not contains some specific words and following it by a certain word like this:</p>

<pre><code>(?&lt;!(state|government|head).*)of
</code></pre>

<p>ex:</p>

<pre><code>state of -&gt; not match
government of -&gt; not match
Abc of -&gt; match
</code></pre>

<p>But It doesn't work. I don't know why, please help me explain it.</p>