Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^5: Regex Parsing Style

by aquarium (Curate)
on Nov 28, 2010 at 23:44 UTC ( #874155=note: print w/ replies, xml ) Need Help??

in reply to Re^4: Regex Parsing Style
in thread Regex Parsing Style

i believe you that the options are mutually exclusive, but i never program as such. it's difficult to guarantee non-trivial regexes will indeed match exclusively on all input data. and hence i would either pre-run all regexes or other such programming to eliminate non-exclusivity OR allow all regexes to match against input and make normal logic decisions + sane decisions on possible anomalies. that's the kind of defensive programming i'd do if time allows. it's always a balancing act in handling program input, but i think a little scepticism in programming itself is a good thing. hence my advice...even though it's not inline with the spec. take it or leave it as you please.

the hardest line to type correctly is: stty erase ^H

Comment on Re^5: Regex Parsing Style

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2016-02-07 02:52 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (241 votes), past polls