This does not work in all cases, as the hash might not be at the
beginning of the line.