Override only the text parts of the regexp, rather than overriding the entire regexp