I was trying to search some patterns in regular expression in python.
As we know if we use the pattern, '[A-Za-z]+' , it means find the sequence of characters which either contains uppercase A to Z or lowercase a to z. So my single line of code (followed by answer) was,
>>> re.findall('[A-Za-z]+', 'This is my area!')
['This', 'is', 'my', 'area']
When I tried some another pattern '[[A-Z][a-z]]+' it returned an empty list, single line of code is as follow,
>>> re.findall('[[A-Z][a-z]]+', 'This is my area!')
[]
So, when I use two sequence inside a character set, what pattern is getting created ? Please guide.