in reply to Re^6: Delete till end of line to another string
in thread Delete till end of line to another string

Have a look at the file with a Hex viewer (for instance on Unix or other reasonable operating systems, using
od -cx FILENAME | less
. Maybe you find some conspicuous control character, such as an isolated carriage return (0x0DH).

-- 
Ronald Fischer <ynnor@mm.st>