I'm using sed to verify that a log file is in the correct format, to make it impossible for crafted input to cause any problems in a shell script.

I'm stumped, and the only explanation that I can think of for why my script isn't working is that sed's "t" command is not working properly.

If I comment out any 2 of the 3 main commands, the output is as expected:
However, if I un-comment all 3 of the main commands, the script doesn't fail when input is invalid.  Instead, it spits out the un-transformed invalid input, as if it was valid.

Am I missing something, or is this a bug?