Matthew,
The ^ can also be used to negate when used within brackets as Hugh is
trying to do. Hugh, from what I've read, the regex parser within the
dial plan is very simple and does not understand that. What you can
do is something like:
exten => _58X,1,GotoIf($[ "${EXTEN:3:1}" = "3" | "${EX
Lookup "negated character class" in your library of RegEx books.
> Not sure which RegEx book you read but ^ (caret) stands for "line beginning"
> not "don't match".
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com
On Thu, 19 May 2005, Matthew Boehm wrote:
> 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 sur
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 be
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)
___
Asterisk-Users mailing list
Asterisk-Users@lists.digi