<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "HTTP://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns="HTTP://www.jzread.com/1999/xhtml">
<head>
<meta HTTP-equiv=" Content-Type" content="text/html; charset=gb2312" />
<title>javascript教程 常用正則運算式</title>
<script language="javascript">
RegExps教程.isNumber = /^[-+]?d+(.d+)?$/;
RegExps.isEmail = /([w-.] +)@(([[0-9]{1,3}. [0-9] {1,3}. [0-9] {1,3}.)| (([w-]+.) +))([a-zA-Z]{2,4}| [0-9] {1,3}) (]?) /;
RegExps.isPhone = /^(((d{2,3}))|( d{3}-))? ((0d{2,3})|0d{2,3}-)? [1-9]d{6,7}(-d{1,4})?$/;
RegExps.isMobile = /^(((d{2,3}))|( d{3}-))? (13|15|18)d{9}$/;
RegExps.isIdCard = /(^d{15}$)| (^d{17}[0-9Xx]$)/;
RegExps.isMoney = /^d+(.d+)?$/;
RegExps.isZip = /^[1-9]d{5}$/;
RegExps.isQQ = /^[1-9]d{4,10}$/;
RegExps.isInt = /^[-+]?d+$/;
RegExps.isEnglish = /^[A-Za-z]+$/;
RegExps.isChinese = /^[u0391-uFFE5]+$/;
RegExps.isUrl = /^HTTP[s]?:/ /[A-Za-z0-9]+. [A-Za-z0-9]+[/=?%-&_~`@[]':+!] *([^<>""])*$/;
RegExps.isDate = /^d{4}-d{1,2}-d{1,2}$/;
RegExps.isTime = /^d{4}-d{1,2}-d{1,2}sd{1,2}:d{1,2}:d{1,2}$/;
</script>
</head>
<body>
</body>
</html>