[Freeswitch-users] Odp: Regex Help

Vishal Kakkar vishal.kakkar at gmail.com
Mon Jul 1 11:08:48 MSD 2013


Hi Mariusz,

Thanks for quick reply. Following is error i am getting while testing the
same

freeswitch at localhost.localdomain> regex
1234567890*123456*12*|^((\d{10})\*(\d{6})\*(1|3|12)\*)$

1234567890*123456*12*
2013-07-01 12:33:58.980772 [ERR] switch_regex.c:101 COMPILE ERROR: 23
[missing )][^((\d{10})\*(\d{6})\*(1]
freeswitch at localhost.localdomain>

Thanks,
-Vishal.


On Mon, Jul 1, 2013 at 12:31 PM, Mariusz Czulada <manieq at wp.eu> wrote:

> try:
> ^((\d{10})\*(\d{6})\*(1|3|12)\*)$
> you should get then:
> $1 - everything
> $2 - first 10-digit part
> $3 - second 6-digit number
> $4 - third - last part - extension
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130701/c711b240/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list