How to remove a substring from the following string 'AA.01.001 Hello' with regular expression using Python.
I tried the following but, not worked.
array= ['AB.01.001 Hello','BA.10.004','CD.10.015 Good bye']
regex = re.compile(r'[A-Z]{2,3}\\.[0-9]{2}\\.[0-9]{3}')
filtered = filter(lambda i: not regex.search(i), array)
Edit:
Exprected output : [`Hello`,'Good bye']