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" <[EMAIL PROTECTED]> 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  -  [email protected]
> http://mail.python.org/mailman/listinfo/tutor

-- 
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to