[OpenSIPS-Users] Question about regex
    Saint Michael 
    venefax at gmail.com
       
    Mon May 18 17:29:36 EST 2020
    
    
  
I need to identify all private IPs vs public IPs
Right now I am doing
$rd =~ "192.168" || $rd =~ "10." || $rd =~ "172.16."
but in regex there is a faster way, chaining several ORs
like
$rd =~ "192.168|10.|172.16."
what is the correct way to do this in opensips?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200518/152eed44/attachment.html>
    
    
More information about the Users
mailing list