I have a following line : |A|B|C|D|100|E|GEN|smsplus|11|11|11| and I want to remove the first and last occurrence of |.
I have to check first if the | is available at first and last
I am sure that this will bring me some down votes but really don't know how to go about.
EDIT
I also have to check for the following :
A|B|C|D|100|E|GEN|smsplus|11|11|11| and |A|B|C|D|100|E|GEN|smsplus|11|11|11 and there is no
possibilities for || that is why I did not want to give any explanation for the same.
thanks for your valuable time.