Is it possible to validate a text field on entry?

We have our own format and internal key of serial number. I would like to disable Next> until somebody has entered the correct format.

This would mean to disable the button and check the string on entry of every char....