<div dir="ltr"><div>Hi Mariusz,<br><br></div>Thanks for quick reply. Following is error i am getting while testing the same<br><div><br>freeswitch@localhost.localdomain&gt; regex 1234567890*123456*12*|^((\d{10})\*(\d{6})\*(1|3|12)\*)$<br>
<br>1234567890*123456*12*<br>2013-07-01 12:33:58.980772 [ERR] switch_regex.c:101 COMPILE ERROR: 23 [missing )][^((\d{10})\*(\d{6})\*(1]<br>freeswitch@localhost.localdomain&gt;  <br><br></div><div>Thanks,<br></div><div>-Vishal.<br>
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 1, 2013 at 12:31 PM, Mariusz Czulada <span dir="ltr">&lt;<a href="mailto:manieq@wp.eu" target="_blank">manieq@wp.eu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">try:<br>
^((\d{10})\*(\d{6})\*(1|3|12)\*)$<br>
you should get then:<br>
$1 - everything<br>
$2 - first 10-digit part<br>
$3 - second 6-digit number<br>
$4 - third - last part - extension<br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div></div></div>