Diff character-level differences highlights
command line - Using ‘diff’ (or anything else) to get character-level diff between text files - Stack Overflow gives this one nice string:
git diff --word-diff=color --word-diff-regex=. file1 file2 which gives red/green characters for deletions/additions. Also, chaining greps also works nicely with
grep -o which passes only the text of the actual match. Grep doesn’t support capturing groups.