in reply to Is this the best regex?

Well, a big issue is that your regex begins with ^ and ends with $, which is kind of oxymoronic for a split. If you remove the $, it will probably work, unless you were intending what almut recommends, in which case you could also use '\n' instead of $.

I'm not sure what you are trying to do, but I would encourage you to go for a more complex data structure here, namely an array of hashes. That means a function which processes each app and returns a hash of its contents. If you want an example, just ask.

Replies are listed 'Best First'.
Re^2: Is this the best regex?
by Anonymous Monk on Sep 09, 2009 at 04:57 UTC
    I don't understand. Aren't most split delimiters either a \n or \s?