UC8000 IPPBX User Manual
50
Figure 5.5.7 Add Dialplan
Regex (Regular Expression) Syntax
^
Matches the starting position in a number string. For example, ^134
matches the numbers starting with 134.
$
Matches the ending position of a string. For example, 2$ matches the
numbers ending with 2.
|
Separates alternate possibilities. For example, 2|3|4 means 2,3or 4.
\
Marks the next character as a special character, a literal, a
backreference, or an octal escape.
[ ]
Matches a single character that is contained within the bracket. For
example, [123] matches 1, 2, or 3. [0-9] matches any digit from "0" to
"9".
[^ ]
Matches any one character except those enclosed in [ ]. For example,
[^9] matches any character except 9.
.
Matches any single character except the newline character. For
example, 3.4 matches 314, 324, 334, 344.
?
Indicates there is zero or one of the preceding element. For
example, colou?r matches both color and colour.
*
Indicates there is zero or more of the preceding element. For
example, ab*c matches ac, abc, abbc, abbbc, and so on.