
Chupo_cro
Novice

Aug 19, 2012, 9:28 PM
Views: 5231
|
|
Re: [FishMonger] Read the var values
|
|
|
Are you currently getting your desired output? If not, how does it differ from what you want? Well, with the regexp I wrote I might get the X, Y and Z values in three passes but everytime I would have to check which one of $1, $2 and $3 contains the extracted data.
Instead of looping over the lines, you could join them into a single scalar and apply one or more regex's to extract the data. The input text contains several thousand lines of the data and I have to generate the transformed output line by line - that is why I am trying to process each line separately. Thank you for the reply Regards Chupo_cro
(This post was edited by Chupo_cro on Aug 19, 2012, 9:29 PM)
|