Cisco Cisco TelePresence Video Communication Server Expressway 관리 매뉴얼

다운로드
페이지 295
Reference material
Regular expressions
Regular expressions can be used in conjunction with a number of Cisco VCS features such as alias
transformations, zone transformations, CPL policy and ENUM. The Cisco VCS uses POSIX format
regular expression syntax. The table below provides a list of commonly used special characters in
regular expression syntax. This is only a subset of the full range of expressions available. For a
detailed description of regular expression syntax see the publication Mastering Regular Expressions
[
].
Character Description
Example
.
Matches any single character.
\d
Matches any decimal digit, i.e. 0-9.
*
Matches 0 or more repetitions of the
previous character or expression.
.* matches against any sequence of characters.
+
Matches 1 or more repetitions of the
previous character or expression.
?
Matches 0 or 1 repetitions of the
previous character or expression.
9?123 matches against 9123 and 123.
{n}
Matches n repetitions of the previous
character or expression
\d{3} matches 3 digits.
{n,m}
Matches n to m repetitions of the
previous character or expression
\d{3,5} matches 3, 4 or 5 digits.
[...]
Matches a set of specified
characters. Each character in the set
can be specified individually, or a
range can be specified by giving the
first character in the range followed
by the - character and then the last
character in the range.
You cannot use special characters
within the [] - they will be taken
literally.
[a-z] matches any alphabetical character.
[0-9#*] matches against any single E.164
character - the E.164 character set is made up
of the digits 0-9 plus the hash key (#) and the
asterisk key (*).
[^...]
Matches anything except the set of
specified characters. Each character
in the set can be specified
individually, or a range can be
specified by giving the first character
in the range followed by the -
character and then the last character
in the range.
You cannot use special characters
within the [] - they will be taken
literally.
[^a-z] matches any non-alphabetical
character.
[^0-9#*] matches anything other than the
digits 0-9, the hash key (#) and the asterisk key
(*).
Cisco VCS Administrator Guide (X6)
Page 271 of 295