Reimplemented parse_specline. It now uses a simpler regex.