Hello,<br><br>   Long week :) -- I have completely forgotten about the regex module.  Thank you all.<br><br><div class="gmail_quote">On Thu, Sep 10, 2009 at 9:57 AM, Brandon Armstead <span dir="ltr">&lt;<a href="mailto:brandon@cryy.com">brandon@cryy.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br><br>    I currently have the following search method use:<br><br>search(&quot;(restricted|anonymous|Anonymous|Private|private|Unknown|unknown)&quot;)<br>
<br>unfortunately this is catching cases where there is a Diversion header i.e. Diversion: &lt; sip:1234@someHost &gt; ; reason = unknown<br>
<br><br>So I attempted to do an assertion:<br><br>search(&quot;(restricted|anonymous|Anonymous|Private|private|Unknown|(?&lt;!reason=)unknown)&quot;)<br><br>However it does not seem that Kamailio is completely PCRE compatible? thus server fail.... / parse error<br>

<br>Does anyone have a solution so I can keep the same matching, except exclude matching &quot;unknown|Unknown&quot; when reason=unknown, however match it in all other conditions?<br><br>Thank you for any and all help ahead of time.<br>

<br><br><br>Sincerely,<br><font color="#888888">Brandon<br>
</font></blockquote></div><br>