Quote:
|
Originally Posted by Alex McKee
Regex could be more efficient for anything even slightly complex. It's always a trade-off. 
|
Hmmm... Reading that article, I'd say you're correct. Switch statements, whilst more elegant than hundreds of if/else statements, do look to be much less efficient in the vast majority of cases.
I may have to study them a bit more... They could come in useful.
Akria