RegEx/Git/DiffRange.regex.txt

# Matches a diff range
(?m)(?:^\@{2,2}) # Two @s
\s{1,} # Whitespace
\- # Dash
(?<FromFileLineStart>\d+) # From
\, # Comma
(?<FromFileLineCount>\d+)? # LineCount
\s{1,} # Whitespace
\+ # Plus
(?<ToFileLineEnd>\d+) # To
\,(?<ToFileLineCount>\d+)? # LineCount
\s{1,}\@{2,2} # Two More @s
(?<Header>(?:.|\s){0,}?(?=\z|$))?$