[Asterisk-Users] Expression in Extension

Matthew Boehm mboehm at cytelcom.com
Thu May 19 11:37:05 MST 2005


Hugh L. Johnson wrote:
> Does ^ work as a NOT in an expression for extensions?
> Are the following equivalent?
>
> exten => _58[^389],1,dial(${${EXTEN}},${RINGLONG},tr)
>
> exten => _58[0124567],1,dial(${${EXTEN}},${RINGLONG},tr)

Not sure which RegEx book you read but ^ (caret) stands for "line beginning"
not "don't match".

-Matthew




More information about the asterisk-users mailing list