Replace only first and last occurence of a string
Posted: Tue Aug 23, 2011 6:08 am
Hi Guys,
I want to replace only the first and last occurance of a string.
For the first occurance i am using Ereplace command.
But i am not able to find out how to do it for the last occurance.
Cheers
I want to replace only the first and last occurance of a string.
For the first occurance i am using Ereplace command.
Code: Select all
Ereplace(colname,"A",'')
Code: Select all
I/P : dbklasasaaada
O/P : dbklsasaaad