Translation rule question

Unanswered Question
Jul 27th, 2010

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Essam Lutfi Tue, 07/27/2010 - 03:30

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.

Actions

This Discussion