Python the difference between re.match and re.findall

1.Usage

 

2. Difference

match will only return one value which is first matched in string, and the type of return value is <class ‘re.Match’>

findall will return all matched options in string , and the type of reutrn value is <class ‘list’>