[^a-z.+3]
match characters other than a-z
.
+
and 3
lets take an example,
x = 'stack overflow... 363 is amazing++useful'
lets take each element in regex one by one.
[^a-z]
matches characters other than a-z
In [19]: re.findall(r'[^a-z]', x)
Out[19]: [' ', '.', '.', '.', ' ', '3', '6', '3', ' ', ' ', '+', '+']
[^a-z.]
matches characters other than a-z
and .
In [20]: re.findall(r'[^a-z.]', x)
Out[20]: [' ', ' ', '3', '6', '3', ' ', ' ', '+', '+']
[^a-z.+]
matches characters other than a-z
.
+
In [21]: re.findall(r'[^a-z.+]', x)
Out[21]: [' ', ' ', '3', '6', '3', ' ', ' ']
[^a-z.+3]
matches characters other than a-z
.
+
3
In [22]: re.findall(r'[^a-z.+3]', x)
Out[22]: [' ', ' ', '6', ' ', ' ']