+Version: 0.0.1 Type: Semver The first line will never change in shape, so you can safely parse it. It will be always structured as: [PLUS SIGN] "Version" [COLON] [SPACE] [DIGITS] [DOT] [DIGITS] [DOT] [DIGITS] [UNIX NEWLINE] If it ever breaks send me an angry email to `dev [at] ptrace [dot] dev` Well, expect you're on Windows and it decides to convert newlines to `\r\n` ¯\_(ツ)_/¯