<! 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=" HTML; charset=gb2312 "/>
<title>javascript Tutorial Common Regular expression </title>
<script language= "JavaScript" >
Regexps Tutorial. 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>