Daniel and Henning, thanks for your input. In some cases I have to compare IPs that are not PV. In those cases I'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"><<a href="mailto:henning.westerholt@1und1.de">henning.westerholt@1und1.de</a>></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>
> I had a lot of errors so I'll just show the final version that works OK.<br>
><br>
> =~ "192\.168\.([0-9]{1,3})\.([0-9]{1,3})<br>
><br>
> The only drawback is that I could pass as valid 192.168.999.999 but as<br>
> these IPs come from a DNS query, I assume they'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 'understand' network<br>
ranges.<br>
<br>
Cheers,<br>
<font color="#888888"><br>
Henning<br>
</font></blockquote></div><br>