in reply to Re^4: conditional regex
in thread conditional regex

I can see some advantages to those in hand-written regex, but none at all for these generated regex.

I can't imagine an application for a multi-line response to a single prompt, never mind accepting an abbreviated multi-line response.

I like consistency in coding style, and rules-of-thumb have their place, but I think you have to apply context to decisions.

Keeping two hands on the steering wheel is good general advice, but applied dogmatically, you'd never adjust a mirror or sun-visor; turn the radio on or off; shut the sat-nav up; scratch your ear...


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.
RIP an inspiration; A true Folk's Guy

Replies are listed 'Best First'.
Re^6: conditional regex
by AnomalousMonk (Archbishop) on Aug 23, 2010 at 11:51 UTC

    ... not to mention that you'd spend the rest of your life in the shower if you ever really did "wash, rinse and repeat..."