Reply To: Stripping out the initial common numbers

#97997
Masood Ahmad
Participant

Hi Mike,

Both the scripts worked like a charm, but I’ll prefer to use the first one. It will help me to replace and check my content.

As I said in my initial post, I’ll also try some GREP code. It seems I’m lucky to achieve it. I came up with three Grep Code sequence to run one by one. I wonder I might have to add subsequent codes, if the numbers are too lengthy. However, I’m happy as it is working on the existing text.

1st Run) GREP Find/Change:
Find What: (\d\d\d)(\d\d\d), \1
Change to: $1$2,

2nd Run) GREP Find/Change:
Find What: (\d\d\d)(\d\d\d), (\d\d\d), \1
Change to: $1$2, $3,

3rd Run) GREP Find/Change:
Find What: (\d\d\d)(\d\d\d), (\d\d\d), (\d\d\d), (\d\d\d), \1
Change to: $1$2, $3, $4, $5,

Thanks Mike for giving me an instant solution. The script is going to help me a lot.

This article was last modified on September 12, 2017

Comments (0)

Loading comments...