05-02-2007 03:45 AM - edited 03-14-2019 09:16 PM
Anyone come across .% as a match all as a destination pattern in a dial peer? Any links to documentation would be good.
Thanks
Leigh
05-02-2007 04:45 AM
According to documentation:
"." Indicates a single-digit placeholder. For example, 555.... matches any dialed string beginning with 555, plus at least four additional digits.
"%" Indicates that the preceding digit occurred zero or more times. This functions the same as the "*" used in regular expression.
Some examples of how these wildcard symbols are applied to the destination pattern and the dial string that results when dial string 4085551234 is matched to an outbound POTS dial peer. The wildcard symbols follow regular expression rules.
"408555.%" 408555, followed by zero or more wildcard digits. This pattern implies that the string must contain at least 408555.
String after stripping = 1234
"40855[5-7].%" 40855, followed by 5, 6, or 7, plus any digit repeated one or more times.
String after stripping = 51234
05-02-2007 10:09 AM
Thanks for the link. Further investigation shows that it matches all digits immediately - without delay.
Leigh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide