cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
304
Views
0
Helpful
1
Replies

Translation rule question

ajinc
Level 1
Level 1

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 1

Essam Lutfi
Level 1
Level 1

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.