【声明:转载此信息在于传递更多信息,其内容表达的观点并不代表本站立场,由这些信息所产生的一切后果本站不负任何责任。如果您对本信息有什么意见,欢迎和本站联系,谢谢!】http://CiDu.Net
<% function isemail(str) if isnull(str) then exit function end if
dim regstr,regex set regex=New RegExp regex.pattern="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" isemail=regex.test(str) set regex=nothing end function if not isemail("liahui@163.net") then response.write "不正确的Email" else response.write "正确的Email" end if %>
声明:以上信息资料大都是网上搜集而来,版权归作者,如有版权问题请留言告知我将马上改正。 文中所提到的各种观点只是原文观点,各种说法未经一一确认。并不代表本站认可此观点!!
|