From mboxrd@z Thu Jan 1 00:00:00 1970
From: Hareesh Nagarajan
. Etc. HTH, Hareesh PS: But you should use an existing library which Fabrizio mentions, instead of reinventing the wheel. > > > > But I realize It is better to use regular expression. This is an examples > > of the text: > > > > =1
blah
linux rulez
> > misc characters.... =2 blah blahlinux rulez again
.... > >foo
> > > > > And so on. > > > > The patterns are: > > > > The record is represented by an equal. Ej, record 1 is "=1", record 2 is > > "=2" and so on. > > > > The desired text is where "linux rulez" is inside, it is the FIRST> >
AFTER a record. > > > > So, I see that program this makes no sense because it is better to use sed > > and awk. > > > > The result I want to have is something like: > > > > 1 linux rulez > > 2 linux rulez again > > 3 linux rulez so far > > ...etc > > > > The idea is elimate alltaq, remove the tags themself and > > numbers and then the text and do the same procedure for all the 65230 > > records. > > > > Thanks alot for any comment, sorry for the 'offtopic' > > > > Kind regards, > > > > fabio > > > Why don't you use an XML parser library? > > Fabrizio > - > To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >