Remove lines ending with a specific format in Notepad++

notepadtext editing

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 .vmt and _exponent.vtf.

Best Answer

To remove lines ending with .vmt, use Search and Replace and select the Regular Expression option. Give the regular expression as

[^%]*.vmt

This will replace all lines that end with .vmt.


Similarly, to replace lines ending with _exponent.vtf, use:

[^%]*_exponent.vtf

as the regular expression.


The regular expression [^%]* means match all characters other than %.

Related Question