<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <tt>Hey Michael,<br>
      <br>
      Maybe this {ip.isprivate} is a better options:<br>
          <a class="moz-txt-link-freetext" href="https://www.opensips.org/Documentation/Script-Tran-3-1#toc80">https://www.opensips.org/Documentation/Script-Tran-3-1#toc80</a><br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>

</pre>
    <div class="moz-cite-prefix">On 5/18/20 8:29 PM, Saint Michael
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAC9cSOCHQ280yzw1DWWeJ3YDpQByAM2R_OxzXyjQ3KRj+_w88w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_default" style="font-size:small">I need to
          identify all private IPs vs public IPs</div>
        <div class="gmail_default" style="font-size:small">Right now I
          am doing </div>
        <div class="gmail_default" style="font-size:small">$rd =~
          "192.168" || $rd =~ "10." || $rd =~ "172.16."<br>
        </div>
        <div class="gmail_default" style="font-size:small">but in regex
          there is a faster way, chaining several ORs</div>
        <div class="gmail_default" style="font-size:small">like </div>
        <div class="gmail_default" style="font-size:small">$rd =~
          "192.168|10.|172.16."<br>
        </div>
        <div class="gmail_default" style="font-size:small">what is the
          correct way to do this in opensips?</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>