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

/[ ]/x matches a space as well.

Replies are listed 'Best First'.
Re^3: A refactoring trap
by Ven'Tatsu (Deacon) on Aug 17, 2005 at 13:56 UTC
    But the regular expression engine is more likely to be able to optimize a literal character as opposed to a character class.
      That's true. Pity noone has written an optimizer-optimizer which translates one character character classes to literal characters.