From a3622939717a450afadc31a1b6772ee9651005b3 Mon Sep 17 00:00:00 2001 From: cyril <38669260+cyrilbois@users.noreply.github.com> Date: Sun, 21 Apr 2024 15:46:26 +0200 Subject: [PATCH] docs(blog): Add tip about regex testers / 2023-05-12-git-diff.md --- documentation/blog/2023-05-12-git-diff.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/documentation/blog/2023-05-12-git-diff.md b/documentation/blog/2023-05-12-git-diff.md index 103c5bcf0a55..c9a32020e219 100644 --- a/documentation/blog/2023-05-12-git-diff.md +++ b/documentation/blog/2023-05-12-git-diff.md @@ -135,6 +135,12 @@ For example, we have made a most recent change in our "`testDiff.txt`" file by a 2. This is the highlighted change that matches the regular expression in the content differences between the previous and current versions. +:::tip + +You can try out your regex patterns on a website like [cyrilex](https://extendsclass.com/regex-tester.html) or [regex101](https://regex101.com/). + +::: + ### Highlighting Diff Changes in one line Another helpful option is `--color-words`. Instead of the "classic" display mode in diffs, sometimes we are interested only in viewing the exact words that have changed instead of viewing entire lines.