Basically, I have an array of strings
var array_strings = ['string1', 'string2', 'string3']
And I would like to know using that array, how could I find every piece of a string that contains something from the array array_strings
and remove it.
For example, If I have the string var hello = 'string1 Hello string2'
I would like it to output only Hello
and remove string1
and string2
.