Announcement

Collapse
No announcement yet.

ignore the line

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ignore the line

    Does beyond compare support to ignore a line for comparision? Most revision control tools supports key word expansion. It would be nice if a comparison tool ignore this kind of line as it has nothing to do with the real content of the file. It will be perfect to support regular expression to specify the pattern.

  • #2
    Re: ignore the line

    You can mark text matching a regular expression as unimportant.

    Create a rule for the text you are comparing. Edit the rule and go to the Importance Tab. In the Unimportant Text section, add new unimportant text and make it a regular expression type.
    Chris K Scooter Software

    Comment


    • #3
      Re: ignore the line

      Great. Thank you for the help.

      Comment


      • #4
        Re: ignore the line

        I want to ingnore a line that contains specific text, even if there are differences on that line. How would I do that with BC?

        Comment


        • #5
          Re: ignore the line

          If you create a rule (as described earlier in the topic) for the text to be unimportant, and select "Ignore Unimportant Differences" it should match between two files.

          If there is a particular delimiter, like # or // at the start of the line, a delimiter should work well. If the text you're matching on is in the middle of the line, a regular expression may work better.

          If you're having difficulty creating a rule for the file type, please send an example file to support and we can help you create one.
          Chris K Scooter Software

          Comment


          • #6
            Re: ignore the line

            OK.

            I tried the prior code but had no luck making it work.

            I'll send the two files I want to compare.

            Thanks.

            Comment


            • #7
              Re: ignore the line

              Just to provide closure in the forum, Chris' suggested expression:

              ^.*SECONDS.*$

              The ^ means beginning of the line,
              .* means followed by any number of characters
              $ means end of the line.

              Works just fine.

              Thanks guys!

              Comment

              Working...
              X