How to ignore line in 1 file and not the other

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kencl
    Journeyman
    • Mar 2006
    • 16

    How to ignore line in 1 file and not the other

    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
    Team Scooter
    • Oct 2007
    • 5538

    #2
    Re: How to ignore line in 1 file and not the other

    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.
    Chris K Scooter Software

    Comment

    • kencl
      Journeyman
      • Mar 2006
      • 16

      #3
      Re: How to ignore line in 1 file and not the other

      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.

      Comment

      Working...