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)
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
Possibly Parallel Threads
- Regex for ^ (the caret symbol)?
- Trouble applying regex to dialplan variable that contains double-quotes
- Inconsistent results between caret+kernlab versions
- problems with extractPrediction in package caret
- using regular expressions to retrieve a digit-digit-dot structure from a string