[Tutor] Amazing power of Regular Expressions...
alan.gauld at btinternet.com
Sun Nov 5 00:29:50 CET 2006
"Jonathon Sisson" <sisson.j at gmail.com> wrote
> of them they're addicting... As Alan Gauld stated in another thread
> pretty sure it was Alan): You'll get to the point that you want to
> (regular expressions) all the time, even if they aren't the right
Nope, it wasn't me, maybe Danny.
But I sure agree with it. The problem with Regex is that they can
be just a bit too powerful. To cite another programming proverb,
this time by Bjarne Stroustrup I think:
"C makes it easy to shoot yourself in the foot;
C++ makes it harder, but when you do,
it blows away your whole leg."
Regex can be like that too.
> Regular Expressions: learn them, love them, use them...but put the
> sword down if a pen can handle the job better.
A great summary.
Author of the Learn to Program web site
More information about the Tutor