Yep, the {1} is totally useless, my bad =)

Those 2 regexp match the diff lines in a `git diff`command. The [^-\n] is required to not match the `---file.txt` part and to stop at the end of the line.

$ git diff
diff --git file.txt file.txt
index 6214953..1d54a52 100644
--- file.txt
+++ file.txt
@@ -1 +1,2 @@
-Here's my tetx file
+Here's my text file
+And this is the second line