---
title: "檢驗郵箱"
author: "lam"
date: "2008-01-08T12:06:59Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2008-01-08T12:06:59Z"
id: 153947
url: "https://lam.iteye.com/blog/153947"
---

function checkMail(s) 
{ 
var pattern=/^\w+(\w+)*@\w+(\w+)*\.\w+(\w+)*$/; 
if(pattern.test(s)) 
{ 
return true; 
} 
else 
{ 
return false; 
} 
}