[Tutor] finding special character string
Santiago Payà i Miralta
santiagopm at wanadoo.es
Mon Jun 2 23:19:56 CEST 2008
Hi,
Try the partition(sep) and rpartition(sep) in a loop. See:
http://www.python.org/doc/2.5/whatsnew/other-lang.html
Could be funny. Regards,
Santiago
On Sun, 1 Jun 2008 03:48:06 -0700 "Dinesh B Vadhia" <dineshbvadhia at hotmail.com> wrote:
> 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?
>
> Dinesh
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
--
More information about the Tutor
mailing list