if I have a string β which has some values separated by comma, like below
TK,UI,OP,FG
or
RT,YU,QR,LK
or
PO,TY
or
OP,QR
or
empty
if my sting can be of any of above sample, and I want to replace OP and QR with nothing then how to achieve? output string should only contain non OP QR Values separated by comma
@vrdabberu thanks for reply.
will this work if OP and QR at end ,as you are replacing OP, , at last there will not be comma.
also what if string has only single OP?
TK,UI,OP,FG
or
RT,YU,QR,LK
or
PO,TY
or
D3,OP
or
OP,QR
or
OP
or
empty