```
import os
import re
import shutil
import tempfile
import csv
from StringIO import StringIO
import sqlite3

### SQL lite

file="H:/query.txt"
file = open(file, 'r')
text = file.read().lower()
file.close()
text = re.split('\W+',text)
print text

```

I am using above script to split a file into a list containing all the words.
But I want special characters ( .,#,\_) to be inlcuding in the list.

I mean if the word is p.player I want to make sure the word is split as p.player not as p and player.same for # and \_

What changes should i make in this script.

Thanks in advance