Find a string : findall « Regular Expressions « Python Tutorial






import re

re.findall('car', 'car')
re.findall('car', 'scary')
re.findall('car', 'carry')








16.2.findall
16.2.1.re.findall returns a list of all occurrences of the given pattern
16.2.2.find the punctuation
16.2.3.Find a string