Function matchVariablesRegEx