In comp.lang.javascript message <tim.streater-E51987.15031307082007@news
..individual.net>, Tue, 7 Aug 2007 15:03:13, Tim Streater
No : it does not make you keep your wits as you get much older, it
merely makes you feel much older while retaining the earlier wits, if
any.
But I agree - for any non-trivial (and some trivial) test manipulation,
use RegExps,
During the 70s and the 80s there was TECO, an editor based on the notion
that typing more than one character to do something to your edit buffer
was a waste of effort. I put regex in the same category.
I liked using TECO - one could write useful programs in it. I had
something which, at the start of an edit, would seek and update the date
and a version number; and something which would renumber cross-
references in numerical order.
TECO was better than the paper tape editor on the 905 - feed a command
tape, feed tape to be edited, punch new tape. But at least one had a
back-up to keep. At one stage, IIRC, I had so much editing to do on the
command tape that I made a command tape to edit the command tape.
I see - <
http://almy.us/teco.html> - that TECO for WinXP etc. exists.
But I don't recall whether TECO had anything like RegExps.
I think PE (later) may be wrong - it could be the g which is wanted and
the $ which should go. If the replacement string were " ", that would
become likely.