findall -the findall function returns list of all the matches found here is an examplere findall( '[ab]\ '' '[' '' '' 'as another exampleto find all the words in stringyou can do the followingre findall( '\ 'sthis is better than using split(because split does not handle punctuationwhile the regular expression does split -the split function is analogous to the string method split the regular expression version allows us to split on something more general than the string method does here is an example that splits an algebraic expression at or re split( '\+|\'' + - ^ + '[' '' '' ^ '' 'match and search -these are useful if you just want to know if match occurs the difference between these two functions is match only checks to see if the beginning of the string matches the patternwhile search searches through the string until it finds match both return none if they fail to find match and match object if they do find match here are examplesif (re match( 'zzz ''abc zzz xyz '))print'match found at beginning 'elseprint'no match at beginning 'if (re search( 'zzz ''abc zzz xyz '))print'match found in string 'elseprint'no match found 'no match at beginning match found in string the match object returned by these functions has group information in it say we have the followinga=re search( '([abc])(\ '' + + ' group( group( group( ' ' ' remember that re search will only report on the first match it finds in the string