Only match line terminators at the end of the line