http://qs321.pair.com?node_id=351253


in reply to Substituting in the substitution!

I'm a lazy guy here, but isn't the tr after the regex substitution both more easy to read and faster? I think many folks here use regexes a little too much (and I am very amazed with some of your skills), to try to do it all in one pass, when that may not be the most efficient.