On 07/02/2013 12:30 PM, [email protected] wrote:
Somemore can be anything for instance:Sometext mail maskit Sometext rupee dollar maskit and so on.. Is there a way I can achieve this?
How do we know whether we have Sometext?
If it's really just a literal 'Sometext', then
just print that when you hit maskit.
Otherwise:
for line in open('file.txt').readlines():
if is_sometext(line):
memory = line
if line == 'maskit':
print memory
--
http://mail.python.org/mailman/listinfo/python-list
