in reply to Re: You don't always have to use regexes
in thread You don't always have to use regexes
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: You don't always have to use regexes
by PetaMem (Priest) on Feb 25, 2005 at 15:35 UTC |