Hi Rana, if the data what you need is something xxxyyyyzzz>fffffgggg
then you can take the entry before > by the following code $x=xxxyyyyzzz>fffffgggg ($data_required,$data_notrequired)=split($x,">"). Hope the above will solve the problem..... Cheers Mazhar On 2/3/06, Dhanashri Bhate <[EMAIL PROTECTED]> wrote: > > Hi, > Give the sample data and then only one can tell what kind of regex you > need. > If your data is simple, just fields delimited by ">" you don't need to > write > regex, you can just work with "split". Read the data lines one by one, and > for each line use split to get the fields in an array. > Also remember the list is to help perl beginners, so no one will respond > positively if you just ask, I want to do this and help me. > Read Perl docs, try something yourself and then post if you face any > problems. > > Regards, > Dhanashri > > > -----Original Message----- > From: Rana [mailto:[EMAIL PROTECTED] > Sent: Friday, February 03, 2006 8:24 AM > To: beginners@perl.org > Subject: extracting information from a file > > Hi, > I am a new bee to perl and I am trying to extract data present between > delimiter ">". I am not exactly sure how to write the regular expression > so > that I can assign the extracted information to a string or an array. > > Kindly help me in this regard. > > Thank you. > Rana > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > >