I'm reading in text from a PDF and am looking to split a string based on (anumber) and keep that value in the split string. So the string:
Some sentence. (1) Another Sentence. (2) Final Sentence.
Would turn into
Some sentence.
(1) Another Sentence.
(2) Final Sentence.
I've tried to do this with thestring.split('(') as a workaround, but there are parentheses found in some of the sentences leading to issues. Thanks!