gabordemooij/redbean — pull request #128 by damianb (2012-02-20 18:32:01+00:00)
Title: Minor regexp shrinkings

Intended to reduce the size of the regexp and hopefully save PCRE a little work.

Also worth considering is adding the `S` flag to get PCRE to "study" regularly used regexps that have a definite length - I'm not sure if the regexps used in the QueryWriter classes are checked often enough to benefit from it or not however, but I know for sure that because of the nature of the regexp in `RedBean_OODB`, there would be zero benefit there.

Also, the regexp change in `RedBean_OODB` uses the `i` flag (case insensitive) to save on the number of characters needed for the regexp. Don't be alarmed. :)