On Sat, Sep 26, 2009 at 8:45 PM, Seven Du <[email protected]> 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
> [email protected]
> 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
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to