View Single Post
  #2 (permalink)  
Old Aug 15th, 2003, 23:52
vor vor is offline
Junior Member
Join Date: Aug 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Pretty kewl, but the Pattern seems alittle long.
I have a function like that but its in javascript

Code: Select all
function isEmail(txt){
    var grep = /\S+@\S+\.\S{2,4}/gi //RegEx Pattern
    return (grep.exec(txt))? true:false;
}// end function
I believe \S+@\S+\.\S{2,4} should work in asp.