Absolutely not. That has nothing to do with it. CPU efficiencies on the scale that we're talking about are irrelevant.
The point is to use the construct that most closely matches the semantics of what you're trying to achieve. If you're wondering if one string is the word "true", then that's not a pattern match, it's a string comparison.
xoxo,
Andy
In reply to Re^2: You don't always have to use regexes
by petdance
in thread You don't always have to use regexes
by petdance
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |