I've got a simple array in Notepad++:
bla.vmt" bla.vtf" bla_exponent.vtf"
I want to get rid of the lines ending with
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
To remove lines ending with
.vmt, use Search and Replace and select the Regular Expression option. Give the regular expression as
This will replace all lines that end with
Similarly, to replace lines ending with
as the regular expression.
The regular expression
match all characters other than
Use Find to mark all lines
Ctrl + F to open the Find screen
Go to the "Mark" Tab
Check "Bookmark line" option
Check the Regular expression option
vmt$ as regex to find all lines ending with "vmt".
$ is the regex anchor that matches the end of a row.
Press "Mark All"
Go to the "Search" menu, "Bookmarks ==> Remove Bookmarked lines"
Similar for your other case, you can use
exponent\.vtf as regex. To match a literal "." with regex, you have to escape it
\., because it is a special character in regex.