あんなこと

a thing like that

→ あんな
phrase Uncommon #12,606
a thing like that Refers to something previously mentioned or understood, often with a negative, critical, surprising, or regretful feeling. Literally, あんな means “that kind of” and こと means “thing.”
JA: もうあんなことは二度としない。
EN: I’ll never do a thing like that again.

トムって、どうしてあんなことしてるの

Why does Tom do things like that?

あんなこと彼女に言うべきではなかったのに

I shouldn't have said that to her.

あんなこと言ってごめんね

I'm sorry for saying something like that.

今度あんなことやったら殺すぞ

If you ever do something like that again, I'll kill you.

— レオン (1994)

トム何であんなことやったんだろう

I wonder why Tom did such a thing.

このあんなこと起きない

Nothing like that happens around here.

もしあの時彼が私と一緒にいてくれたら私はあんなことしなかったのだが

If only he had been with me then, I wouldn’t have done such a thing.

あんなこと

Something like that

— かぐや姫の物語 (2013)

あんなこと信じた私がバカだったんだ

I was an idiot for believing something like that!

あんなこと言わなきゃよかった

I wish I hadn’t said that.

もうあんなこと二度とごめんだ

I never want to go through something like that again.

ったら何であんなことしたんだろう

Why on earth did I do something like that?