I think below function will do the trick. Use space as delimiter. https://www.opensips.org/Documentation/Script-Tran-2-4#toc6
Best Regards, Aqs On Wed, 23 Jan 2019 at 14:07, Alexey Kazantsev via Users < [email protected]> wrote: > Hi list! > > I have AVPs like > "Shop-0 73522222222 3522" > or > "Office-0 73522222222 3522" > > I'd like to extract the middle part from them (73522222222 in these > examples). > Something that can see a whitespace as a delimiter > will be great, because the length of words in AVP may differ. > > I checked the list of core functions [1], but not sure if there is > something appropriate there. > > > [1] https://www.opensips.org/Documentation/Script-Tran-2-4 > > ----------------------------------------------- > BR, Alexey > http://alexeyka.zantsev.com/ > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
