python extract pattern matches,p = re.compile('name (.*?) is valid')