I have this column of postal codes entered with random format. Is it possible to format cells to '00000-0000' updated and as entered?

79602
76308
77056
77375-4489
76308-2206
76118
65037
77586
76446 4375

Becomes:

79602-0000
76308-0000
77056-0000
77375-4489
76308-2206
76118-0000
65037-0000
77586-0000
76446-4375

Thanks in advance