in reply to Re: Is there any regex limitation?
in thread Is there any regex limitation?

How does the split solution you posted handle the following portion of the OP's input?

"Wah Woo, Section A"

I can tell you how it does: One field gets ("Wah Woo), the next field gets ( Section A"), and the embedded but significant comma gets gobbled up. Or to put it simply: It handles it wrong.

() parens added to disambiguate whitespace in the example output


Dave

Replies are listed 'Best First'.
Re^3: Is there any regex limitation?
by Anonymous Monk on Jul 26, 2011 at 07:39 UTC

    How does the split solution you posted handle the following portion of the OP's input?

    obviously it doesn't -- just like the OPs actual code

    use Text::CSV or Text::xSV