in reply to Reading and Separating Data From a File Using Regex

Could you provide your input and desired output in the <code> tags?

Right now, I'm unsure why you wrote that time, data1 and data2 are significant, but there is no time in your output.

As moritz suggested, Text::CSV is probably your best friend here.

Regards,
Luke

Replies are listed 'Best First'.
Re^2: Reading and Separating Data From a File Using Regex
by peeeerld (Initiate) on Jan 20, 2009 at 13:33 UTC
    Thanks for your suggestions, but I am trying to do it in regex and not use a specific module. Any idea on how to get it done like that? Thanks again!

      If this is not just a learning exercise in how to use regular expressions, see Yes, even you can use CPAN for how you, yes, you can incorporate code from the CPAN into your programs.

      If this is a learning exercise in regular expressions, we will need to see the code. When we see your code, we can best advise you where to look and what documentation to read to improve your code. Please help us to help you better.