move regexp literals into objects, to work around serious errors in ECMAScript 3 (see http://blog.stevenlevithan.com/archives/es3-regexes-broken)