Daniel and Henning, thanks for your input. In some cases I have to compare IPs that are not PV. In those cases I&#39;ll have to use the regex operator.<br><br>Cheers,<br>Uriel<br><br><div class="gmail_quote">On Tue, Mar 30, 2010 at 11:34 AM, Henning Westerholt <span dir="ltr">&lt;<a href="mailto:henning.westerholt@1und1.de">henning.westerholt@1und1.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Friday 26 March 2010, Uriel Rozenbaum wrote:<br>
&gt; I had a lot of errors so I&#39;ll just show the final version that works OK.<br>
&gt;<br>
&gt;  =~ &quot;192\.168\.([0-9]{1,3})\.([0-9]{1,3})<br>
&gt;<br>
&gt; The only drawback is that I could pass as valid 192.168.999.999 but as<br>
&gt;  these IPs come from a DNS query, I assume they&#39;ll be fine.<br>
<br>
</div>Hi Uriel,<br>
<br>
thank you for sharing this. As Alex mentioned, the easier (and also probably<br>
more faster) way is to use the src_ip construct, which &#39;understand&#39; network<br>
ranges.<br>
<br>
Cheers,<br>
<font color="#888888"><br>
Henning<br>
</font></blockquote></div><br>