if we're caching the regular expression, we can also cache the replacement string, for greater legibility