Convincing meld to ignore specific lines of code?

4.9k views Asked by At

I'm using Meld to spot differences between two similar sets of fortran code. In many cases, the only difference between the two files is an automated version number. This line makes it look like there are more differences than there should be, and it gets confusing.

The automated version number line in question is something like

 !! $Id: filename.F90 v#### YYYY-MM-DD HH:MM:SSx username $  

Is it possible to convince meld to ignore all lines that look like this line? I don't want meld to ignore all comments, as some differences in comments are important.

1

There are 1 answers

0
AnthonyVO On

Beware the filter named "All whitespace"

If your regular expression includes a space, e.g. "!! \$Id*" and your expression is after the "All whitespace", then it will never match because all whitespace has already been removed.

To solve this, move your expression before the "All whitespace", expression.

I add this answer because the above comments were correct but did not solve my variation of the problem.

enter image description here