I have a question regarding notepad++. I have this text:
And this second one:
Basically I want to delete the countries that appear in image 2, from image 1. How can I do this?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
You should be able to do this in Notepad++ as follows:
,|, so you end up with a list of countries to delete like
Note that this assumes that country names are just separated by commas (no spaces). The last entry in List 1 should also be followed by a comma, otherwise it won't get matched by the search.
I do not know how to automate your task in the Notepad++, but if your lists' data are not security critical, you can use script I have written in jsfiddle: https://jsfiddle.net/RomanTarasiuk/ev0fzsog/. Or save the script text into a *.html file and open it in your browser – this way is completely secure, and my script is as simple as possible and cannot damage your computer/smartphone.
Format each of your two lists that each of them are placed in one line, values in them are separated by comma only (no spaces). Put your two lists into first and second textarea accordingly and press button, and your result list will be placed to the third textarea.