re module provides us with the function findall() that is used to find all the match present in the given string. As an output it returns a list containing all the matches in the form of string. However, it does not tell anything about the position of the occurrences of the match. If the pattern specified has groups then the output will be a list of tuples instead of strings.
(Things written inside ‘< >’ are compulsory but things written under’[ ]’ are optional)
For some examples of findall function you can refer my previous articles, link for them are as follows:
re Special Sequence