Hi, thanks for the reply..
Actually I am reading that array data from a text file so how can I apply it there??
I think I have to first identify the ID elements in the text through pattern matching, then eliminate all duplicate ID's and their corresponding sequence.
but here 1f:a & if:b are duplicate IDs too i.e data after colon (:) isn't considered so they both are considered as same id and duplicates has to be eliminated.
Hope I am clear now !!
please help me with it..
Thanks in advance