Hi Tutors,

I need a little help with this, if anyone has the time and inclination:

>>> s = 'Hi "Python Tutors" please help'
>>> s.split()
['Hi', '"Python', 'Tutors"', 'please', 'help']
>>> 

I wish it would leave the stuff in quotes in tact:

['Hi', '"Python Tutors"', 'please', 'help']

Any suggestions?

Thank you.

Marilyn Davis


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to