Hi guys, I have a list which I have obtained from a python script. the content of the list goes something like: The content below is in a file but I loaded it into a list for comparing it to something else. But now I have to split this list such that each new list created contains the complex name with the corresponding number. Hope it is clear now :)
d.complex.1
24
25
67
123
764
d.complex.200
23
54
35
64
d.complex.302
.
.
.
I want to split this list such that, a new list is created from d.complex.1 to d.complex.2 (excluding d.complex.2) i.e.:
d.complex.1
24
25
67
123
764
end of list
>newlist
d.complex.200
23
54
35
64
endoflist
Can anyone help me out? Cheers, Chavanak