Only interpolate constant regexps once