Quote:
Originally Posted by salesman
specific example of when this would be necessary? I cannot think of any situation where a simpler solution wouldn't work.
|
The point isn't what they can do that other solutions can't.
The point is that they might be the better solution.
Thats how scripting languages evolve and become better. If we didn't improve on what we already have, we would still have gs1.
And in a lot of ways, regular expressions can be simpler than other solutions.
It could be the difference of writing a pretty large chunk of code, and comparing a simple regular expression.