Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Conditional continued matching with regexes

by BrowserUk (Patriarch)
on Feb 06, 2007 at 03:24 UTC ( [id://598473]=note: print w/replies, xml ) Need Help??


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.
  • 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. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://598473]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2024-04-19 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found