> For the complete documentation index, see [llms.txt](https://beyondcompare.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://beyondcompare.gitbook.io/project/text-compare/how-to-use-regular-expressions-in-beyond-compare-to-ignore-trivial-differences-like-timestamps.md).

# Ignore Trivial Differences, Like Timestamps

During a Text Compare session it is often convenient to ignore things like dates and times. Beyond Compare can do this by creating a rule for what is Unimportant, using a Regular Expression.  In the example  below, if you wanted to ignore Lines 1 and 2, you can write an appropriate RegEx for each.  Then when you press the *Minor* key, any differences which you defined as Unimportant Differences will lose their color highlighting.  Also,  in a Text Compare Report, they can be ignored.

![](/files/-LnP9KM1kO6KJMPMLIpE)

First, from the Rules button, choose: `Rules->Importance->[+]->`[`#`**`RegEx`**](https://twitter.com/hashtag/RegEx?src=hash)

Then add these rules to ignore the following lines:&#x20;

Line 1: \d\d\d&#x20;

Line 2: Date/Time:.&#x20;

Line 7: IP Address:*.*\d+.\d+.\d+.\d+.\*

![](/files/-LnPBCHmhrNYiRVg7jZP)
