cancel
Showing results for
Did you mean:
cancel
Announcements
835
Views
4
6
Replies
Enthusiast

## translation rule for DID

• 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
Collaborator

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.
6 REPLIES 6
Collaborator

HI

I could not find any sequence so best can be

You can use

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

```
Regards Ronak Patel Rate all helpful post by clicking stars below the answer.
Enthusiast
`/^441021\([5679]\)\$/`

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

Collaborator

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.
Enthusiast

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.

Collaborator

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.
Enthusiast
Create