[Tutor] finding special character string

Dinesh B Vadhia dineshbvadhia at hotmail.com
Sun Jun 1 12:48:06 CEST 2008

A text document has special character strings defined as "." + "set of characters" + ".".  For example, ".sup." or ".quadbond." or ".degree." etc.  The length of the characters between the opening "." and closing "." is variable.

Assuming that you don't know beforehand all possible special character strings, how do you find all such character strings in the text document?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080601/701bf158/attachment.htm>

More information about the Tutor mailing list