I'm a newbie to JavaScript and I am creating a form with a input field which needs validating. The field must contain two capital letters at the beginning and then a string of numbers any length and no spaces. i.e. "AB12345". I am able to validate fields with just numbers or letters but cannot fathom out how to do it with a combination of both.

Any help would be much appriciated.