fixing variable regular expression