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

Wouldn't a Parser::RecDescent solution suffer exactly the same problems?

Wouldn't you either have to load the entire file and parse it as a single lump; or parse it line by line until the parser failed, append the next line to the failed line and then re-attempt from the beginning?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • 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:02 UTC
    Yup. But doing all the logic in a regexp feels less comfortable to me. I'm just more versed in parser/lexer's for logic that is more complex. The entire putting perl code within regexp's is fine, just not my way.

    After all, bart asked me what would *I* do. :)