Example: I have a file as :
filename1 = "I am a student" (inside filename1 have I am a student )
f = open(filename1)
string = f.read()
spl = re.split('\s|(?<!\d)[,.](?!\d)',string)
f.close
print spl will show: I am a student , but I need the result as [student a am I] could you answer me please... Thanks in advance.