Hi
I have many lines in one of my table as follow :
1 aayaadaax
2 bbybbbbbbbby
3 yccz
I want to displays these lines in my page but if the last letter of the chain is a "y" I want ot replace it by a "m"
So for my tree lines it should be
aayaadaax (nothing to do)
bbybbbbbbbbm (the last letter was a "y" so I did relpace it by a "m"
yccz (nothing to do)
I would like to know the perl command in perl to do it
Do I have to make a reverse of the chain and replace the first letter if it is a y then to make another reverse to display the chain
Txs for your help
FMP
I have many lines in one of my table as follow :
1 aayaadaax
2 bbybbbbbbbby
3 yccz
I want to displays these lines in my page but if the last letter of the chain is a "y" I want ot replace it by a "m"
So for my tree lines it should be
aayaadaax (nothing to do)
bbybbbbbbbbm (the last letter was a "y" so I did relpace it by a "m"
yccz (nothing to do)
I would like to know the perl command in perl to do it
Do I have to make a reverse of the chain and replace the first letter if it is a y then to make another reverse to display the chain
Txs for your help
FMP