Checking textfield input (for crying out loud)

I wish I knew enough about AS3 so that one little step did not take hours to figure out.

Anyway, I am trying to check data from a textfield making sure it is numbers only as well as a length of 3 only. This is what I have so far, which is not working.

var qnumber:TextField = q_number;

if(qnumber != “0-9”)
{
trace(“words”);
}

else
{
trace(“more words”);
}

If someone can help, I would appreciate it!

MH