Remember that the occurance to be replaced could be 99th from beginning and the whole string could be delimited with pipe upto say 200 times.
So simple regex with three four entries would not suffice.
Like I said I am doing it in perl code. It also has the substitution feature.
Can you write the search pattern. It needs to be generic in nature meaning it should replace the 54th occurance while required and 99th occurance when required. In short it should substitute any nth occurance.
Appreciate the response.
Can't it be done via normal regex substitution?
I am saying this because the actual string which I will substitute is not so simple but complex and I cannot simply join it with pipes. I am not looking to split and then join the line but to simple insert at correct position.