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. And see here for current known issues.

New Member

Translation rule question

I have translation rule like this below, i understand the rule that replaces the first digit 9 with 4 what is the significance of \1 at the end , I see in some rules it is \3 , \2 etc i am not able to corelate that to anything. May be a silly one but can anyone answer soon as we have a number change in Qatar.

rule 1 /^9\(.*)/ /4\1/

Thx

Aji N C

1 REPLY
New Member

Re: Translation rule question

rule 1 /^9\(.*\)/ /4\1/



\1 means the first group which is (.*) in this case.


/ ^9  \(.*\) /     as you understood the first part correctly, the second part is grouping all the coming numbers after 9 and make it a group.


/  4   \1   /      then in the translation as you mwntioned replace 9 with 4 and then follow the 4 with the Group 1 which you previously determined in the first part of your rule.

i hope that this will help you.

134
Views
0
Helpful
1
Replies