using variables in python regular expression,re.compile('{}-\\d*'.format(user))