Contents
Hiding your own patterns (regex filter)
Two log files from the same run differ in every line — in the timestamp. Two exports of the same table differ in the sequence number. Such differences are real but uninteresting. The regex filter cuts them away before the comparison: lines that differ only in those parts then count as formatting only.
6.1 The window
A click on Regex filter… in the filter bar opens the regex filter window. It is divided into three areas:
| Area | Content |
|---|---|
| BUILDING BLOCKS | left: the ready-made patterns, grouped by topic — time & date, numbers, identifiers, code, text & structure, own |
| MY RULES | middle: the rules you chose — individually switchable, movable, removable |
| PREVIEW ON YOUR FILES | right: what the rules do to your actual lines |
6.2 Building a rule
- Click a block on the left, say Timestamp or Number. It appears under My rules straight away.
- Where needed, fill in the field beside it — for the Number block, for instance, “minimum digits”; for a line comment, the comment character.
- Check in the preview on the right whether the rule hits what you intended.
- Close with Apply — the comparison recalculates immediately.
6.3 The preview — the real trick
On the right stand your own differing line pairs as soon as a rule touches them: at the top both lines with the part that falls away marked — below that the verdict on whether they now count as equal (“✓ equal after filtering — this difference disappears”) or what else they hang on (“still differs at:”). A line above sums it up: “7 of 31 differences now count as formatting only.”
6.4 Templates and rule sets
For the usual kinds of file there are ready-made templates: Source code, Log file, CSV / export and XML / HTML. One click and the matching rules are in place.
Whatever you have put together yourself can be kept as a rule set: type a name, click Save — the message confirms “… saved — 6 rules”. Next time you pick the set from the list; “Last used” sits at the top. Delete removes a set again.
6.5 For the initiated: writing directly
Anyone fluent in regular expressions can switch to Edit directly and write them line by line — one expression per line. Switching back to the kit shows known patterns as blocks again, all others as “Own pattern”.