import re
s=open(r"bug.txt").read()
regexpr=re.compile(r"start(.*?)end",re.DOTALL)
result=regexpr.search(s)
try:
print result.group(1)
except:
print "Can't find match string"
import re
s=open(r"bug.txt").read()
regexpr=re.compile(r"start(.*?)end",re.DOTALL)
result=regexpr.search(s)
try:
print result.group(1)
except:
print "Can't find match string"