5 Configurations on Web Interface
UC100-1
V
1S1O User Manual
Copyright©2011-2016 Dinstar
57
Table 5-16 Explanation of Number Parameters
Name
The name of the number profile
Prefix of Caller
Number
The prefix of the calling number. It supports regular expression
Prefix of Called
Number
The prefix of the called number. It supports regular expression
Length
The length of the calling number or called number. For example,
:
4|6|7 means the calling number or called number must be 4 digits, 6
digits or 7 digits except the prefix
Regex (Regular Expression) Syntax
Table 5-17 Explanation of frequently-used metacharacters in Regex
^
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.
+
Indicates there is one or more of the preceding element. For
example, ab+c matches abc, abbc, abbbc, and so on, but not ac
\d
Mark any digit, equal to [0-9 ]
\D
Mark any character that is not a digit, equal to [^0-9 ]
\s
Mark any blank character such as a space or a tab.
\S
Mark any character that is not a blank character