> This is continuation to my previous email with
> sugject line "Python regular expression". My text
> file although, looks like .ini file, but it is not. It
> is a chip definition file from Gene chip. it is a
> huge file with over 340,000 lines.
Thats big but by no means outragous, I have proc
> Name:
> City:
>
>
> Characterstics of this text:
> 1. This text is divided into blocks and every block
> start with 'Name'. The number of lines after this
> identifier is random.
[snip]
> 1. mark the identifier i need and select all the lines
> after
kumar,
Here is a solution for you. The makeSections() function will iterate through blocks in the file and
return each one in turn to the caller.
makeSections() is a generator function - the use of yield makes it one. That means that it returns
an iterator that can be used in a for loop. Each ti
Dear group,
This is continuation to my previous email with
sugject line "Python regular expression". My text
file although, looks like .ini file, but it is not. It
is a chip definition file from Gene chip. it is a
huge file with over 340,000 lines.
I have particular set of question in general