Dinesh B Vadhia 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?
I'd read through it, looking for periods.
If it were "cat.dog.rat.bat", I'd note that .dog. and .rat. meet the
criteria and list them.
How would you do it?
And how does this question relate to Python?
--
Bob Gailer
919-636-4239 Chapel Hill, NC
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor