From: "Rilawich Ango" <[EMAIL PROTECTED]>
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


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to