Python: how to get correct list when split?
<p>In test.txt, I have 2 lines of sentences.</p>

<pre><code>The heart was made to be broken.
There is no surprise more magical than the surprise of being loved.
</code></pre>

<p>The code:</p>

<pre><code>import re
file = open('/test.txt','r')#specify file to open
data = file.readlines()
file.close()
for line in data:
    line_split = re.split(r'[ \t\n\r, ]+',line)
    print line_split
</code></pre>

<p>Results from the codes:</p>

<pre><code>['The', 'heart', 'was', 'made', 'to', 'be', 'broken.', '']
['There', 'is', 'no', 'surprise', 'more', 'magical', 'than', 'the', 'surprise', 'of', 'being', 'loved.']
</code></pre>

<p>How to get only word print out? (see the first sentence) Expect result:</p>

<pre><code>['The', 'heart', 'was', 'made', 'to', 'be', 'broken.']
['There', 'is', 'no', 'surprise', 'more', 'magical', 'than', 'the', 'surprise', 'of', 'being', 'loved.']
</code></pre>

<p>Any advice?</p>
