startup: lazily load regular expressions

(integrated from trunk branch change 5cccc24 by Todd Whiteman <toddw@activestate.com>)