Re: Complicated string substitution

2008-02-13 Thread Tim Chase
> I have a file with a lot of the following ocurrences: > > denmark.handa.1-10 > denmark.handa.1-12344 > denmark.handa.1-4 > denmark.handa.1-56 Each on its own line? Scattered throughout the text? With other content that needs to be un-changed? With other stuff on the same line? > denmark.han

Complicated string substitution

2008-02-13 Thread Horacius ReX
Hi, I have a file with a lot of the following ocurrences: denmark.handa.1-10 denmark.handa.1-12344 denmark.handa.1-4 denmark.handa.1-56 ... distributed randomly in a file. I need to convert each of this ocurrences to: denmark.handa.1-10_1 denmark.handa.1-12344_1 denmark.handa.1-4_1 denmark.han