Stop only if the line is ^0$, not if it contains a "0".