[asterisk-users] question about regex
Yuan LIU
yliu11 at hotmail.com
Tue Feb 13 08:40:32 MST 2007
>From: "Rilawich Ango" <maillisting at gmail.com>
>Date: Tue, 13 Feb 2007 17:43:05 +0800
>
>Hi, I have tried the regex function below with MACRO_EXTEN=5000*.
>However, both of them return 0 instead 1 to me. How can I search the
>character in the end of line?
>
>${REGEX("[*]$" ${MACRO_EXTEN})
>returns 0
You must be using Asterisk 1.2.10 or something. Take a look at
http://www.voip-info.org/wiki/index.php?page=Asterisk+func+regex. The
workaround is funky: using a variable to represent special characters like
$.
Yuan Liu
>${REGEX("*$" ${MACRO_EXTEN})
>returns 0 with error
>
>ango
More information about the asterisk-users
mailing list