Re: extract text between keywords

2008-10-14 Thread Rob Dixon
Sharan Basappa wrote: > > I am aware that a file descriptor needs to be opened etc. BTW, do you think > text-balanced can help in situations that are slightly more complex than I > described above. For example, if I have data like: > > keywordx id > some text > some text > { > more text > mor

Re: extract text between keywords

2008-10-14 Thread Sharan Basappa
On Tue, Oct 14, 2008 at 8:50 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: > Sharan Basappa wrote: >> On Fri, Oct 10, 2008 at 9:49 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: >>> >>> If your problem really is that simple, and you don't expect 'keywordy' >>> blocks to >>> be nested inside other 'keywordy'

Re: extract text between keywords

2008-10-14 Thread Rob Dixon
Sharan Basappa wrote: > On Fri, Oct 10, 2008 at 9:49 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: >> >> If your problem really is that simple, and you don't expect 'keywordy' >> blocks to >> be nested inside other 'keywordy' blocks, then the program below will do what >> you need. >> >> It may help if

Re: extract text between keywords

2008-10-14 Thread Sharan Basappa
On Fri, Oct 10, 2008 at 9:49 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: > Sharan Basappa wrote: >> >> I am trying to process a code for some processing. >> The code looks like >> >> keywordx ... >> >> keywordy identifier_a >> some text >> endkeywordy >> >> keywordz identifier_a >> some

Re: extract text between keywords

2008-10-10 Thread Rob Dixon
Sharan Basappa wrote: > > I am trying to process a code for some processing. > The code looks like > > keywordx ... > > keywordy identifier_a > some text > endkeywordy > > keywordz identifier_a > some text > endkeywordz > > endkeywordx > >>From this, I would like to extract te

extract text between keywords

2008-10-10 Thread Sharan Basappa
Hi, I am trying to process a code for some processing. The code looks like keywordx ... keywordy identifier_a some text endkeywordy keywordz identifier_a some text endkeywordz endkeywordx >From this, I would like to extract text starting from keywordy and endkeywordy. Is using