Oct-11-2024, 10:50 AM
(This post was last modified: Oct-11-2024, 10:50 AM by learningpythonherenow.)
Sorry for this format, just trying to figure this out.
i'm trying to take a string including many of (words, numbers, empty spaces, empty lines, multiple lines of text and punctuation) and separate them into 2 lists containing the characters before each set of group of a variable of (letters and pucntuation) on a line and each group after each same set of group of variable (letters and punctuation) and list those two groups in two separate lists. Also, to create a list of the variable set of (letters and punctuation) after the set of group of (letters and punctuation) before the set of same set of group of (letters and punctuation) on the same line of text. all the text is in a .txt file
i'm trying to take a string including many of (words, numbers, empty spaces, empty lines, multiple lines of text and punctuation) and separate them into 2 lists containing the characters before each set of group of a variable of (letters and pucntuation) on a line and each group after each same set of group of variable (letters and punctuation) and list those two groups in two separate lists. Also, to create a list of the variable set of (letters and punctuation) after the set of group of (letters and punctuation) before the set of same set of group of (letters and punctuation) on the same line of text. all the text is in a .txt file