rewrite some regex in critical path to speed up urlfetch *^_^*