[Freeswitch-users] regexp with LUA script

Michael Collins msc at freeswitch.org
Mon Apr 18 23:09:05 MSD 2011


On Mon, Apr 18, 2011 at 9:35 AM, Boris Kovalenko <boris at tagnet.ru> wrote:

>  Hello!
>
>     Yes, I know about LUA native patterns. Unfortunatelly I can't (or don't
> know how to) do something like:
> \d{4,6} or \d{10,}
>

\d{4,6} is "%d%d%d%d%d?%d?"

\d{10,} is "%d%d%d%d%d%d%d%d%d%d+"

At first glance that may seem inelegant, however, it is far more efficient
than trying to send a regex through an api:execute call.

-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110418/3edb227c/attachment.html 


More information about the FreeSWITCH-users mailing list