<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script>
function validate()
{
var val = document.getElementById("field").value;
if ( val.search(/^[0-9]+[a-zA-Z]{1}$/)==-1 )
{
alert("不符合规则");
}
else
{
alert("符合规则");
}

</script>
</head>
<body>
<input type="text" id="field">
<input type="button" onClick="validate()">
</body>
</html> 
做了一个简单的例子,我这个正则用的不怎么简练,不过很好看懂。