http://qs321.pair.com?node_id=598497


in reply to Re: Conditional continued matching with regexes
in thread Conditional continued matching with regexes

What use is a parser, when a lexer will do?

"When all you have is a hammer, every problem looks like a nail." And a parser is an excellent hammer.

What I mean is: there's nothing remotely recursive in the definition of the syntax of CSV. Which is when you need to use a parser.

  • Comment on Re^2: Conditional continued matching with regexes

Replies are listed 'Best First'.
Re^3: Conditional continued matching with regexes
by exussum0 (Vicar) on Feb 06, 2007 at 15:06 UTC
    Hey, you asked what I'd use. I wouldn't use a regexp. Not because it's wrong, but what you posted, while may work, is not the easiest thing for me to just mind dump into code.

    Was it your intention to ask what *I* would do and then critique me on it? If that were to happen, I never would have answered at all.