I've got a list of lists, containing strings. After much assorted regular expressions work, I've inserted what I'd like to use as a delimiter, @@@
, into my strings:
[['@@@this is part one and here is part two and here is part three and heres more and heres more'],
['this is part one@@@and here is part two and here is part three and heres more and heres more'],
['this is part one and here is part two@@@and here is part three and heres more and heres more']
['this is part one and here is part two and here is part three@@@and heres more and heres more']
['this is part one and here is part two and here is part three and heres more@@@and heres more']]
Now, I need to come up with this:
[['this is part one'],['and here is part two'],['and here is part three'], ['and heres more'], ['and heres more']]
So far my attempts are bloated, hacky, and generally ugly. I find myself splitting, combining, and matching. Can anyone recommend some general advice on this type of problem, and what tools to use to keep it manageable?
EDIT please note! and heres more
indeed appears twice in the ideal output!