I am trying to break up a string with multiple lists inside them with different formatting. What is the best way to do this?
string = "something here: 1) A i) great ii) awesome 2) B"
another_string = "But sometimes it is different (1) yep (2) not the same i. or this ii. another bullet (3.1) getting difficult huh? 3.1.1 okay i'm done"
Ideally, I would want to be able to split any possible numbering or bullet list.
Desired output for string:
something here: 1) A
i) great
ii) awesome
2) B
Desired output for another_string:
But sometimes it is different (1) yep
(2) not the same
i. or this
ii. another bullet
(3.1) getting difficult huh?
3.1.1 okay i'm done