[Freeswitch-users] regexp with LUA script

Boris Kovalenko boris at tagnet.ru
Mon Apr 18 17:06:32 MSD 2011


Hello!

     How can I use regexp with LUA scripts? Yes, I found I may use 
api:execute('regex'....) but can't understand how to get matched strings 
from it. For example my re is (\d+)#(\d+) and I want to get $1 and $2 in 
some variables.

-- 
Regards,
Boris





More information about the FreeSWITCH-users mailing list