Re: [Freeswitch-users] confuse of regex command with |
On Sat, Sep 26, 2009 at 8:45 PM, Seven Du dujinf...@gmail.com wrote: Hi, is this a bug? freeswi...@internal regex 10|09|10 false freeswi...@internal regex 10|10 true freeswi...@internal regex 10|(09|10) false freeswi...@internal 2009-09-27 11:47:00.815355 [ERR] switch_regex.c:101 COMPILE ERROR: 4 [missing )][(09] the first one should be true? ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org Try adding a backslash in front of the pipe so that the regex command does not view the pipe as a data delimiter: freeswi...@internal regex 10|09\|10 true Let us know if you get it working for your needs. -MC ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] confuse of regex command with |
Yep escape it. /b On Sep 28, 2009, at 10:47 AM, Michael Collins wrote: regex 10|09\|10 ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] confuse of regex command with |
Thanks. But I think it would be nicer if the regex looks the same as in dialplan. can we add a optional separator arg on this case? regex data|pattern [seperator] regex 10:09|10 : 2009/9/29 Brian West br...@freeswitch.org Yep escape it. /b On Sep 28, 2009, at 10:47 AM, Michael Collins wrote: regex 10|09\|10 ___ FreeSWITCH-users mailing list FreeSWITCH-users@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@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] confuse of regex command with |
Hi, is this a bug? freeswi...@internal regex 10|09|10 false freeswi...@internal regex 10|10 true freeswi...@internal regex 10|(09|10) false freeswi...@internal 2009-09-27 11:47:00.815355 [ERR] switch_regex.c:101 COMPILE ERROR: 4 [missing )][(09] the first one should be true? ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org