This code almost does what I need it to..
for line in all_lines:
s = line.split('>')
Except it removes all the '>' delimiters.
So,
<html><head>
Turns into
['<html','<head']
Is there a way to use the split() method but keep the delimiter, instead of removing it?
With these results..
['<html>','<head>']
['<html', '>', '<head', '>', '']
is different from['<html>', '<head>']
. I know it's been a few months but I just voted to reopen. If you do too someone else make take it over the finish line? – user1717828