Caret ( ^ ) –
The caret symbol is used to check if a string starts with a certain character.
In : import re In : re.findall('^python', 'python is awesome') Out: ['python'] In : re.findall('^python', 'I love python') Out: 
In both the examples we are looking for a string that starts with python. In the first example the string starts with python so we got match. In the second example, although python is there but we do not get any match as python is not at the beginning of a string.
Match at a Start of each line –
By default the caret symbol matches the pattern at the beginning of a string. But if you want to match the pattern at the beginning of each newline in a multi line string then you have to use the re.MULTILINE flag.
In : text = '''python is awesome. ...: python is growing very fast.''' In : re.findall('^python', text) Out: ['python'] In : re.findall('^python', text, flags=re.MULTILINE) Out: ['python', 'python']