only on the first instance of matching textenter the following into the interactive shellphonenumregex re compile( '\ \ \ -\ \ \ -\ \ \ \ 'mo phonenumregex search('cellwork'mo group('on the other handfindall(will not return match object but list of strings--as long as there are no groups in the regular expression each string in the list is piece of the searched text that matched the regular expression enter the following into the interactive shellphonenumregex re compile( '\ \ \ -\ \ \ -\ \ \ \ 'has no groups phonenumregex findall('cellwork'[''''if there are groups in the regular expressionthen findall(will return list of tuples each tuple represents found matchand its items are the matched strings for each group in the regex to see findall(in actionenter the following into the interactive shell (notice that the regular expression being compiled now has groups in parentheses)phonenumregex re compile( '(\ \ \ )-(\ \ \ )-(\ \ \ \ )'has groups phonenumregex findall('cellwork'[(' '' '' ')(' '' '' ')to summarize what the findall(method returnsremember the followingwhen called on regex with no groupssuch as \ \ \ -\ \ \ -\dd\ \dthe method findall(returns list of string matchessuch as [''''when called on regex that has groupssuch as (\ \ \ )-(\ \ \ -(\ \ \ \ )the method findall(returns list of tuples of strings (one string for each group)such as [(' '' '' ')(' '' '' ')character classes in the earlier phone number regex exampleyou learned that \ could stand for any numeric digit that is\ is shorthand for the regular expression ( | | | | | | | | | there are many such shorthand character classesas shown in table -