[asterisk-dev] zero-or-more match
Nick Lewis
Nick.Lewis at atltelecom.com
Wed Feb 10 05:44:23 CST 2010
> Well, the "easy" way would be if there was a special character which
> repeated the previous pattern zero or more times. Like * in common
> regular expressions.
I do not see this as a substitute for real dialplan security but it
would be a useful new feature.
To repeat a "previous pattern" may be too complicated and confusing but
to repeat a "previous character" would be useful. The % character is
little used in extensions so could potentially be reassigned as dialplan
punctuation for the purpose of repeating the previous character. e.g.
"3%" matches "", "3", "33" etc
"[a-z]%" matches "", "b", "yx" etc
"X%" matches "", "0", "98" etc
"3\%" matches "3%"
Another useful feature would be a non-repeating "." that wildcard
matches just one character. The ? character may be suitable for this
where "?%" is equivalent to "!" and "??%" is equivalent to "." . I
currently use "[!-~]" extensively for this purpose but it does not deal
with whitespace and unprintable ascii.
-- N_L
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre.
_____________________________________________________________________
Disclaimer of Liability
ATL Telecom Ltd shall not be held liable for any improper or incorrect use of the information described and/or contained herein and assumes no responsibility for anyones use of the information. In no event shall ATL Telecom Ltd be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement or substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this system, even if advised of the possibility of such damage.
Registered Office: ATL Telecom Ltd, Fountain Lane, St. Mellons Cardiff, CF3 0FB
Registered in Wales Number 4335781
All goods and services supplied by ATL Telecom Ltd are supplied subject to ATL Telecom Ltd standard terms and conditions, available upon request.
More information about the asterisk-dev
mailing list