rekna
rekna

Reputation: 5333

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

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

Upvotes: 5

Views: 20585

Answers (2)

user108570
user108570

Reputation: 129

I found line filters to be very lacking. I developed regular expressions filter yesterday using Boost Regex library.

I feel it does the job.

https://sourceforge.net/projects/regexfilterforw/files/

Feel free to try.

Upvotes: 0

Sven
Sven

Reputation: 26

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!

Upvotes: 1

Related Questions