cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1071
Views
4
Helpful
6
Replies

translation rule for DID

techguy
Level 4
Level 4
  • 44102152 à 3152
  • 44102160 à 3160
  • 44102153 à 3153
  • 44102171 à 3171 (one can be like /^2171/ /3171/)
  • 44102128 à 3228
  • 44102101 à 3201
  • 44102130 à 3230
  • 44102194 à 3194
  • 44102104 à 3304

What can be the best (or one) translation rule for above-mentioned numbers

1 Accepted Solution

Accepted Solutions

Since last digit is not used for the matching. It will remain intact. For example

/^441021\([5679]\)$/ /31\1/

44102152

Result would be 3152.

31 because we are adding it

5 because we are using \1

2 because it is not matched in above rule , so will remain intact.

Regards

Ronak patel

Regards Ronak Patel Rate all helpful post by clicking stars below the answer.

View solution in original post

6 Replies 6

ronpatel
Level 8
Level 8

HI

I could not find any sequence so best can be  

You can use

/^441021\([5679]\)$/ /31\1/
/^441021\([203]\)$/ /32\1/
/^44102104$/ /3304/


Regards
Ronak Patel

Regards Ronak Patel Rate all helpful post by clicking stars below the answer.

/^441021\([5679]\)$/

underlined part of translation rule will select one digit or two digit.

one digit..Also I had type mystake. Please remove $ from 1 and 2 rule.

Regards Ronak Patel Rate all helpful post by clicking stars below the answer.

There are total 8 digits first six are 441021 then one selected by underlined part. what about last digit

it means last digit will not be mentioned if underlined part of translation rule will select one digit.

Since last digit is not used for the matching. It will remain intact. For example

/^441021\([5679]\)$/ /31\1/

44102152

Result would be 3152.

31 because we are adding it

5 because we are using \1

2 because it is not matched in above rule , so will remain intact.

Regards

Ronak patel

Regards Ronak Patel Rate all helpful post by clicking stars below the answer.