Re: [Asterisk-Users] Expression in Extension

2005-05-19 Thread Waldo Rubinstein
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

Re: [Asterisk-Users] Expression in Extension

2005-05-19 Thread Hugh L. Johnson
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

Re: [Asterisk-Users] Expression in Extension

2005-05-19 Thread Peter Svensson
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

Re: [Asterisk-Users] Expression in Extension

2005-05-19 Thread Matthew Boehm
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

[Asterisk-Users] Expression in Extension

2005-05-19 Thread Hugh L. Johnson
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