map static RegExps to regular expression literals