[Freeswitch-users] Regex Help

Vishal Kakkar vishal.kakkar at gmail.com
Mon Jul 1 10:43:14 MSD 2013


Hi all,

I am trying to use regex in an dial plan to match -

*10-DigitNumber*6-DigitNumber*X*

*
*where X can be = 1 or 3 or 12
*
**

i.e. 1234567890*123456*1*
1234567890*123456*3*
1234567890*123456*12*

I formed following to match first two-
^\d{10}[*]\d{6}[*][13][*]$

And this to match third one
^\d{10}[*]\d{6}[*][1][2][*]$

But i am unable to make single regex that would pass all three using OR or
anything..

I want to use this regex in play_n_get_digits.

Please Help
-Vishal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130701/95dbd925/attachment.html 


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