[Freeswitch-users] confuse of regex command with "|"
Michael Collins
msc at freeswitch.org
Mon Sep 28 08:47:23 PDT 2009
On Sat, Sep 26, 2009 at 8:45 PM, Seven Du <dujinfang at gmail.com> wrote:
> Hi, is this a bug?
>
> freeswitch at internal> regex "10"|"09|10"
> false
> freeswitch at internal> regex "10"|"10"
> true
> freeswitch at internal> regex "10"|"(09|10)"
> false
> freeswitch at 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 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
>
>
Try adding a backslash in front of the pipe so that the regex command does
not view the pipe as a data delimiter:
freeswitch at internal> regex "10"|"09\|10"
true
Let us know if you get it working for your needs.
-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090928/72186ab2/attachment-0002.html
More information about the FreeSWITCH-users
mailing list