in reply to Re: Is this the best regex?
in thread Is this the best regex?

Yes -- that fixes split, but my thinking was fuzzy. I got focused on why split did not work and forgot that if I did get it working, the delimiter would be thrown away. In the case, the delimiter is data because it has the program name!

Thanks for the education on split. I am sure it will come in handy one day.

Replies are listed 'Best First'.
Re^3: Is this the best regex?
by Anonymous Monk on Sep 09, 2009 at 04:59 UTC
    Wait. I saw your comment re the capturing parentheses. How do I capture both the fields and the delimiters?
      I figured it out. SLICK! Split with capturing parens keeps that part of the delimiter. Slick!!