Suppose, a = 'I was born in 1997'
And I want to print everything present in a using regular expression (just for learning purpose.)
So when I use: re.match(r'.*', a)
Then it shows match as: <_sre.SRE_Match object; span=(0, 18), match='I was born in 1997'>
But when I use: re.match(r'[.*]', a)
I get no output, i.e no match is found.