[OpenSIPS-Users] regex extract value from $ru

Satish Patel satish.txt at gmail.com
Fri Sep 12 22:48:16 CEST 2014


Following is $ru and i want to extract following  sip:sipprovider.com:5060

sip:123456789 at sipprovider.com:5060

to

sip:sipprovider.com:5060

I am using following regex but its not working, does following make sense?

 $var(z) = $ru;
        $var(z) = "s/[^:@]*@//";
        xlog("My regex $ru\n");
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140912/7fde6662/attachment.htm>


More information about the Users mailing list