Any way to recover accidentally deleted text?

I typed a message in a box which was permitted a limited number of characters. I went over the limit and tried to delete the excess characters but the whole message was erased.
Is there a way to recover such messages?
