http://qs1969.pair.com?node_id=484434


in reply to Re^2: A refactoring trap
in thread A refactoring trap

But the regular expression engine is more likely to be able to optimize a literal character as opposed to a character class.

Replies are listed 'Best First'.
Re^4: A refactoring trap
by Anonymous Monk on Aug 18, 2005 at 09:06 UTC
    That's true. Pity noone has written an optimizer-optimizer which translates one character character classes to literal characters.