How to use this type of Regular Expression in line filters #2253
Replies: 4 comments 1 reply
-
If both lines exist in a Diff hunk, the Line Filters pattern must match both lines to be applied. |
Beta Was this translation helpful? Give feedback.
-
It works! |
Beta Was this translation helpful? Give feedback.
-
I'm now having a problem with managing Substitution Filters. The original filter I created was working. I then modified the filter to cover multiple types but it didn't work. I removed the filters and created the original filter again. It didn't work. I have also tried various things such as restarting WinMerge in combination with removing and recreating the filter. When a line filter is enabled/disabled etc. a message appears on the windows with the list of files: "Filters are updated. Do you want to refresh all open window compares. ...". This message does not appear when I enable/disable/add/remove a Substitution Filter. I do not know where my filters are stored. The Edit > Options > System > Filter Folder setting was C:\Users\fs\Documents, but there is nothing related to WinMerge there. There is probably a bug. But if you can tell me how to find and remove the WinMerge Settings, so I can define and activate the original Substitution Filter, it will be of great help. |
Beta Was this translation helpful? Give feedback.
-
Substitution Filters are stored in the registry below.
|
Beta Was this translation helpful? Give feedback.
-
I am comparing Java source files and want to ignore the lines in which there are Java generic type declaration differences, for example:
I am using <[A-Za-z]*> as the regular expression for the line filter, but it doesn't work. The same regular expression works fine in NotePad++ searches.
I have used other line filters which start with ^ (match from the start of line) and they work.
Beta Was this translation helpful? Give feedback.
All reactions