[Asterisk-Dev] regular expression behavior

snacktime snacktime at gmail.com
Tue Nov 22 11:49:58 MST 2005


Not sure if this is a bug or just undocumented behavior.   Might be
useful to document this in README.variables ?

This works, with var2 being set to the first 8 characters in something:
Set(something=8001114444)
Set(var2=$["${something}" : "([0-9]{0\,8})"])

This returns "invalid repetition count(s)".  It seems the comma in the
repetition quantifier has to be escaped:

Set(something=8001114444)
Set(var2=$["${something}" : "([0-9]{0,8})"])


Chris



More information about the asterisk-dev mailing list