I have a list. Many of the words in the list start with 'JKE0'. I want to remove all words that start with this pattern.
This is what i've done but it's failing, the list remains the same size and nothing is removed
new_list = list(x)
r = re.compile('JKE0')
rslt = list(filter(lamda a: (a != r.match), new_list))