"Tiago Cunha" <tiago...@gmail.com> wrote
I would suggest to use the NLTK package. Try methods like nltk.endswith() or nltk.startswith()
NLTK is probably overkill.The standard string methods startswith() and endswith() are probably adequate for this case.
Alan G. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor