I'm working with ASP.NET MVC 3 C# and I have this regex:
@"([a-zA-Z0-9%._-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,4})+"
It works for almost all cases, unless after the @ have less than 2 characters.
Ex:
stackoverflow@ab.com < Valid e-mail.
stackoverflow@a.com < Invalid e-mail, but my regex don't works.
I don't found something like this on forum and i I know almost nothing about regex. Someone can help with this? Thanks. (Sorry for bad english).