一个Email验证有必要搞的那么复杂吗?看看我写的,不比你们那个差吧
[CODE]function email(strng)
email = false
set regex = new regexp
regex.pattern = "^\w+((-\w+)|(.\w+))*@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+)*.[A-Za-z0-9]+$"
regex.ignorecase = true
set match = regex.execute(strng)
if match.count then email = true
end function[/CODE]
脑子灵活一点,思路为什么总是绕着想呢?