Announcement

Collapse
No announcement yet.

Regex to limit comparison to matching string

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Regex to limit comparison to matching string

    I want to compare two registry dumps (.REG) and ONLY compare lines containing the string "Mail" anywhere on the line.

    How can I do this?

  • #2
    Re: Regex to limit comparison to matching string

    We also discussed this by email, but here are the instructions for anyone else following this thread:

    Here's how to only compare lines containing the string "Mail".

    Open the files in Beyond Compare's File Viewer.
    Select Tools|Edit Current Rules.
    Go to the Importance tab.
    In the String Literals section, click New.
    Select Regular Expression, and use the expression: .*Mail.*
    In the Importance tab, check "All other text is unimportant".
    Click OK until you're back to the main window.

    If View|Ignore Unimportant Differences is turned on, only lines
    containing Mail will show differences. If it is turned off, differences
    on other lines will show in blue.

    File Comparison Rules are documented in the Rules section of the Beyond
    Compare help file.
    Chris K Scooter Software

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎