<div dir="ltr"><div dir="ltr">I think below function will do the trick. Use space as delimiter. </div><div dir="ltr"><br><a href="https://www.opensips.org/Documentation/Script-Tran-2-4#toc6">https://www.opensips.org/Documentation/Script-Tran-2-4#toc6</a></div><div dir="ltr"><br></div><div>Best Regards, </div><div><br></div><div>Aqs</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 23 Jan 2019 at 14:07, Alexey Kazantsev via Users <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi list!<br>
<br>
I have AVPs like <br>
"Shop-0 73522222222 3522"<br>
or<br>
"Office-0 73522222222 3522"<br>
<br>
I'd like to extract the middle part from them (73522222222 in these examples).<br>
Something that can see a whitespace as a delimiter<br>
will be great, because the length of words in AVP may differ.<br>
<br>
I checked the list of core functions [1], but not sure if there is<br>
something appropriate there.<br>
<br>
<br>
[1] <a href="https://www.opensips.org/Documentation/Script-Tran-2-4" rel="noreferrer" target="_blank">https://www.opensips.org/Documentation/Script-Tran-2-4</a><br>
<br>
-----------------------------------------------<br>
BR, Alexey<br>
<a href="http://alexeyka.zantsev.com/" rel="noreferrer" target="_blank">http://alexeyka.zantsev.com/</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>