On Aug 9, 2004, at 9:05 AM, Singh, Harjit wrote:
I am trying to write a script that would be able to read a file. The file is broken into number of segments and each segment starts with a similar string pattern of following type: 2.2.x.y.z: followed with white space, where x, y, z numbers change throughout the file. The segment further has number of things that I am looking for. I want to be able to capture the segment value in addition to other things in a specific segment. What is the best approach to be able to make this possible? I have tried number of things but have not been able to capture the right regular expression to capture the information. I would appreciate if any one can send in their response...
Show us a few lines of data, please, and the expressions you have tried. We'll walk you through why they aren't working and give some pointers.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>