I am catching all the code between a start and an end point and storing it in a list.
Code:
import re
parsing =False
aList = []
mylist = []
bBlock = []
fileObj = open('inputfile', 'r')
for line in fileObj:
if line.find(".ent") != -1:
print "Now parsing **************************************"
Leave a comment: