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.