Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Voice Translation Rules

I am confused by language Cisco uses to describe a wildcard combination. I am referencing this web page: http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

The wildcard combination is ".*", defined as: "Any digit followed by none or more ocurrences. This is effectively anything, including null."

The following examples are provided:

*************************************

Example 2

This example replaces all numbers with "5554000".

voice translation-rule 2

rule 1 /.*/ /5554000/

router# test voice translation-rule 2 123

Matched with rule 1

Original number: 123 Translated number: 5554000

router# test voice translation-rule 2 86573

Matched with rule 1

Original number: 86573 Translated number: 5554000

router# test voice translation-rule 2 ""

Matched with rule 1

Original number: Translated number: 5554000

*************************************

The last example is where I am confused. The Original Number is a null value. The definition as stated by Cisco for ".*" is "Any digit FOLLOWED BY none or more ocurrences." To me, the example would make sense if the wording was "Any digit OR none or more ocurrences."; but as the value is null, there is no "any digit" to be followed by "none or more occurances".

Is it just me?

193
Views
0
Helpful
0
Replies