PDA

View Full Version : How to ignore line in 1 file and not the other


kencl
09-Apr-2006, 04:40 PM
Hi Folks,

Anyone know how I setup and ignore difference rule where there is a specific line in 1 file but not in the other one? I've tried using a regular expression which does color the line as if it is a minor difference, but it still shows up as a difference when ignoring differences.

I've tried these:
(^.*?DEMO SITE ONLY!!!$)?
.*DEMO SITE ONLY!!!|.*
.*(DEMO SITE ONLY!!!$)?

It just doens't seem to want to accept a missing line as a match.

Chris
10-Apr-2006, 05:50 PM
Even if the whole line is marked unimportant BC still sees it as a blank line. Checking "Blank lines" in the Importance tab should hide the difference.

kencl
10-Apr-2006, 05:57 PM
Yeah, that's what I figured. I knew about the unimportant checkbox for blank lines, but there is only 1 case where I want to ignore a blank line. I ended up adding the line to the other file in a line comment then writing a custom regular expression to ignore the comment tag for that particular line.