So, the entire content of the 'edit' (2) will have a string in it, and you want to find the matching string in the 'list' (1), and remove that line?

What do you want to happen if the string in the edit doesn't exist in the list?