正则--必须含有数字和大写字母,必须是9位。

(?!^[0-9]{9}$)(?!^[A-Z]{9}$)^[0-9A-Z]{9}$
(?!)匹配右边不能含有某个字符
posted @ 2008-07-03 18:38  looping  阅读(1159)  评论(0编辑  收藏  举报