日期:2014-05-16 浏览次数:20318 次
<!DOCTYPE HTML> <html> <head> <meta charset="gb2312" /> <title></title> <style> </style> </head> <body> <script> var s = 'A123d12d3'; var re = /^(?=[a-zA-Z\d]{6,12}$)[A-Z][a-zA-Z\d]*[a-zA-Z][a-zA-Z\d]*$/; document.write( re.test(s) ) document.write('<br/>') document.write( s.match(re) ) </script> </body> </html>