Winmerge : how to ignore differences in lines with a special ending tag

rekna picture rekna · Jul 29, 2009 · Viewed 16.5k times · Source

I would like to ignore difference in lines, if one of the files has a line ending with //ignore is this possible? how would the regular expression for the line filter be written?

tried .*//ignore$ but this does not work

Answer

Sven picture Sven · Dec 10, 2009

When you launch a file compare from the Select Files or Folders dialog, after choosing the Left and Right files, click Select next to the Filter field.

In the Filters dialog, click the Linefilters tab, create the following line filter (add)

^//ignore

Enable the line filters you want to use and run your comparison.

Have fun!