[OpenSIPS-Users] Dialplan regex help
Sharad Kumar
voip.security at protonmail.com
Wed Jan 22 13:50:54 EST 2020
Hey guys,
I need your little help in regex, I have a regex that search the 9 Digits DID and append 972 as a prefix. So for example -
DID - 012345678
After regex - 9720123456789
But now I want to remove the first 0 by regex so that I should get the output like this - 97212345678
These are my current regex rules -
Matching Regular Expression - ^0[0-9]{8}$
Substitution Regular Expression: ^(0)([0-9]{8})$
Replacement Expression: 972\2
Any help or suggestions will be appreciated.
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200122/45679758/attachment.html>
More information about the Users
mailing list