<span style="font-family: courier new,monospace;">Following up on my own post.  the following _does_ work:</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    if (/^(?!normal)/) {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        print &quot;not normal\n&quot;;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    } else {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        print &quot;normal\n&quot;;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    }</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">The important things to note are:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">I had to have something in front of the negative lookahead (hence the &#39;^&#39;)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">but I had originally tried binding to both the front and the back,<br>but that didn&#39;t work.</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">To summarize:</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/(?!normal)/     doesn&#39;t work, probably because you can&#39;t do a lookahead<br>
                 without defining what to &#39;lookahead after&#39;<br style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">/^(?!normal)/    works (Yippee)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/^(?!normal)$/   doesn&#39;t work ;-/<br><br>Here was my sample harness for testing:<br><br>#!/usr/bin/perl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">sub xxx {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    $_ = shift;</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    print &quot;&#39;$_&#39; --&gt; &quot;;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    if (/^(?!normal)/) {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        print &quot;not normal\n&quot;;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    } else {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        print &quot;normal\n&quot;;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    }</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">xxx (&quot;disconnected-unknown&quot;);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">xxx (&quot;disconnected-timed-out&quot;);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">xxx (&quot;disconnected-empty-response&quot;);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">xxx (&quot;disconnected-bad-gw-status&quot;);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">xxx (&quot;connected-1st-login&quot;);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">xxx (&quot;connected-nth-login&quot;);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">xxx (&quot;normal&quot;);<br>
<br><br>and the result I wanted to see:<br><br>&#39;disconnected-unknown&#39; --&gt; not normal<br>&#39;disconnected-timed-out&#39; --&gt; not normal<br>&#39;disconnected-empty-response&#39; --&gt; not normal<br>&#39;disconnected-bad-gw-status&#39; --&gt; not normal<br>
&#39;connected-1st-login&#39; --&gt; not normal<br>&#39;connected-nth-login&#39; --&gt; not normal<br>&#39;normal&#39; --&gt; normal<br><br style="font-family: courier new,monospace;"></span><br style="font-family: courier new,monospace;">