Appendix: Pattern-matching syntax
FortiVoice Cloud supports the following pattern-matching syntax:
|
Syntax |
Description |
|---|---|
|
X |
Matches any single digit from 0 to 9. |
|
Z |
Matches any single digit from 1 to 9. |
|
N |
Matches any single digit from 2 to 9. |
|
[ ] (square brackets) |
Matches any digits in the brackets. For a range of numbers, use a dash. Example: [15-7]. In this example, the pattern matches 1, 5, 6, and 7. |
|
. (period) |
Acts as a wildcard that matches any digit and allows for any number of digits to be dialed. Example of a pattern matching rule: XX. In this example, the system looks for a dialed number match that has three or more digits. |
|
! (exclamation point) |
Acts as a wildcard that matches any digit (including no digits) and allows for any number of digits to be dialed. Example of a pattern matching rule: XX! In this example, the system looks for a dialed number match that has two or more digits. |
Pattern-matching examples
|
Pattern |
Description |
|---|---|
|
X. |
Matches any dialed number. |
|
NXXXXXX |
Matches any seven-digit number, as long as the first digit is 2 or higher. |
|
NXXNXXXXXX |
Matches any dialed number that has 10 digits. |
|
1NXXNXXXXXX |
Matches any dialed number that matches this pattern: 1 + area code (between 200 and 999) + seven-digit number (first digit is 2 or higher). |
|
011. |
Matches any number that starts with 011 and has at least one more digit. |
|
XX! |
Matches any two or more digits. |