How to split a string based on the duplicate
string dd=1,2,3,4,5,1,2,3,4,3,1,2,3is there any way to split the string based on duplicate value in the string
string dd=(1,2,3,4,5)
string 2nd=(1,2,3,4)
string 3rd=(3,1,2,3)
please help me thanks in advance