how to match beginning of string or character in python,"float(re.findall('(?:^|_)' + par + '(\\d+\\.\\d*)', dir)[0])"