in reply to You don't always have to use regexes
Additionally, usage of substr can save quite a few regular expressions here and there.
But the rule of thumb should be: use whatever seems more natural for the problem at hand, and optimize only if necessary.
|
|---|