What's the Language?
Bash, 100%, 100 bytes

sed sX..s.2./s.XX|grep -Po '(?&lt;=&gt;)[^&lt;]+?(?=(,(?! W)| [-&amp;–5]| ?&lt;| [0-79]\d| ?\((?!E|1\.)))'|head -1


Try it online on Ideone.

Verification

$ wget -q https://gist.githubusercontent.com/vihanb/1d99599b50c82d4a6d7f/raw/cd8225de96e9920db93613198b012749f9763e3c/testcases
$ grep -Po '(?&lt;= - ).*' &lt; testcases &gt; input
$ grep -Po '^.*?(?= - )' &lt; testcases &gt; output
$ while read line; do bash headers.sh &lt;&lt;&lt; "$line"; done &lt; input | diff -s - output
Files - and output are identical