in reply to Re: Long Versions
in thread Long Versions
More subtly, if the first (or any later) regex does not return a true value (i.e. it doesn't match) the later of the && conditions aren't even executed/tried, since by then, the total result will always be false.
This distinction is subtle but it can have quite profound effects if interpreted/understood (in)correctly. See also Short-circuit_evaluation
|
---|