[Freeswitch-users] LUA pattern again

Boris Kovalenko boris at tagnet.ru
Thu Apr 21 21:41:48 MSD 2011


No success. I use it with string.match function, is it right?
> Try this pattern:
> "(7?3435)?230%d%d%d
>
> -MC
>
> On Thu, Apr 21, 2011 at 12:59 AM, Boris Kovalenko <boris at tagnet.ru 
> <mailto:boris at tagnet.ru>> wrote:
>
>     Hello!
>
>     After your message I found that and my regex is invalid too :) 
>     No, I need:
>
>     73435230xxx
>     3435230xxx
>     230xxx
>
>
>
>>     So you want all these to match?
>>     73435230xxx
>>     7230xxx
>>     3435230xxx
>>     230xxx
>>
>>     Just confirming...
>>     -MC
>>
>>     On Thu, Apr 21, 2011 at 12:01 AM, Boris Kovalenko
>>     <boris at tagnet.ru <mailto:boris at tagnet.ru>> wrote:
>>
>>         Hello!
>>
>>             May somebody help me how to write regex
>>         ^7?(3435)?230\d{3} with LUA
>>         pattern? I've tried ^7?3435?230%d%d%d and this is wrong.
>>
>>         --
>>         С уважением,
>>           Борис Коваленко
>>           ЗАО "Тагнет"
>>           тел. +7 (3435) 230001
>>           факс +7 (3435) 230005
>>
>>
>>         _______________________________________________
>>         FreeSWITCH-users mailing list
>>         FreeSWITCH-users at lists.freeswitch.org
>>         <mailto: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
>>
>>
>>
>>     _______________________________________________
>>     FreeSWITCH-users mailing list
>>     FreeSWITCH-users at lists.freeswitch.org  <mailto: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
>
>
>     -- 
>     С уважением,
>        Борис Коваленко
>        ЗАО "Тагнет"
>        тел. +7 (3435) 230001
>        факс +7 (3435) 230005
>
>
>     _______________________________________________
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto: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
>
>
>
> _______________________________________________
> 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


-- 
С уважением,
   Борис Коваленко
   ЗАО "Тагнет"
   тел. +7 (3435) 230001
   факс +7 (3435) 230005

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110421/d245af46/attachment.html 


More information about the FreeSWITCH-users mailing list