Skip to content

Filters

WinXMerge supports two types of filters to customize comparison behavior.

Exclude lines matching regex patterns from the comparison entirely. Useful for ignoring:

  • Comments
  • Timestamps
  • Auto-generated content
  • Version numbers
  1. Open Edit → Options… → Filters
  2. Enter regex patterns separated by | (pipe)
  3. Lines matching any pattern are excluded from the diff

Apply regex find/replace transformations before comparison. The original files are not modified — substitutions are applied only during diff computation.

Use cases:

  • Normalize date formats
  • Ignore version number differences
  • Standardize whitespace
  1. Open Edit → Options… → Filters
  2. Add substitution rules with a regex Find pattern and a Replace string
  3. Multiple rules can be defined

In addition to filters, WinXMerge provides these comparison options (available in the toolbar as toggle buttons):

OptionDescription
Ignore whitespaceTreat lines with different whitespace as equal
Ignore caseCase-insensitive comparison
Ignore blank linesSkip empty lines
Ignore line endingsIgnore CR/LF differences
Moved line detectionToggle detection of moved lines (blue highlight)

All settings are persisted across sessions.