Logical boolean operator give me fits too. According to
DeMorgans Law:
((!a) || (!b)) is equivalent to (!(a && b));
Since your
string could not possibly match both regular expressions, the condition always evaluated to true, and consequently fell through the the
then block. I think what you wanted was:
((!a) && (!b));
but you're right, marc's solution is a little clearer.
[ May 12, 2006: Message edited by: Garrett Rowe ]