[Freeswitch-users] Odp: Re: Odp: Regex Help

Vishal Kakkar vishal.kakkar at gmail.com
Thu Jul 11 16:40:53 MSD 2013


Hi Mariusz,

^((\d{10})\*(\d{6})\*(1|3|12))  is matching for 12 (in third part) but for
1 and 3 it is not matching during IVR.

Thanks,
-Vishal.




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

> "|" is expression is treated as a parameter separator to "regex" api
> command. Try instead:
>
> freeswitch at internal> regex
> m:/1234567890*123456*12*/^((\d{10})\*(\d{6})\*(1|3|12)\*)$/$1 $2 $3 $4
> 1234567890*123456*12* 1234567890 123456 12
>
>
>
>
> _________________________________________________________________________
> 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/20130711/6bb83ddc/attachment-0001.html 


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