Hi,
I hope someone can help me with the follwing problem?
it's a bit tricky to explain but ...
I have a file with the following data contained within it:
1 ODH_ARTSP,
2 DHLO_AGRVI,
3 ILV5_SPIOL,
4 MMSB_PSEAE,
5 6PGD_SHEEP
;
tree PAUP_1 = [&U] (1,(2,((3,5),4)));
Does anyone know how i can replace the digits in the the part of the file i.e. (1,(2,((3,5),4)));
with the corresponding text above it.
In order that i can end up with the following result:
(ODH_ARTSP,(DHLO_AGRVI,((ILV5_SPIOL,6PGD_SHEEP),MMSB_PSEAE)));
I have tried doing this replacement using Regular Expressions, but because I replace one by one it replaces the numbers in the replacement text as well so, ILV5_SPIOL becomes ILV6PGD_SHEEP_SPIOL because 6PGD_SHEEP is supposed to replace 5.
Does anyone have any idea of how i can go about doing this?
Any kind of help would be much appreciated
Thanks again
I hope someone can help me with the follwing problem?
it's a bit tricky to explain but ...
I have a file with the following data contained within it:
1 ODH_ARTSP,
2 DHLO_AGRVI,
3 ILV5_SPIOL,
4 MMSB_PSEAE,
5 6PGD_SHEEP
;
tree PAUP_1 = [&U] (1,(2,((3,5),4)));
Does anyone know how i can replace the digits in the the part of the file i.e. (1,(2,((3,5),4)));
with the corresponding text above it.
In order that i can end up with the following result:
(ODH_ARTSP,(DHLO_AGRVI,((ILV5_SPIOL,6PGD_SHEEP),MMSB_PSEAE)));
I have tried doing this replacement using Regular Expressions, but because I replace one by one it replaces the numbers in the replacement text as well so, ILV5_SPIOL becomes ILV6PGD_SHEEP_SPIOL because 6PGD_SHEEP is supposed to replace 5.
Does anyone have any idea of how i can go about doing this?
Any kind of help would be much appreciated
Thanks again