Re: extracting information from a file

2006-02-03 Thread Mazhar
Hi Rana, if the data what you need is something xxxzzz>f then you can take the entry before > by the following code $x=xxxzzz>f ($data_required,$data_notrequired)=split($x,">"). Hope the above will solve the problem. Cheers Mazhar On 2/3/06, Dhanashri Bhate

RE: extracting information from a file

2006-02-02 Thread Dhanashri Bhate
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 rememb