I have a list of strings like
l1 = ['John', 'London', '219980']
I want to remove elements of this list from given string say:
s1 = "This is John Clay. He is from London with 219980"
I know I can do it like
for l in l1:
s1 = s1.replace(l, "")
But if the list is big it takes too much time.
Is there any other alternative solution for this?
Desired Output:
'This is Clay. He is from with '
EDIT:
The list is made in such a way that all the elements from the list are present in string(sentence).