I use this regex for my email validation
/.+@.+\..+/i
I can't get it to work on my server side though. I tried this so far
var pattern = @"^.+@.+\..+i$";
var pattern = @".+@.+\..+i";
I get 0 results trying it (also in my code). Any ideas? Not sure if it helps but the requirement is to allow [email protected] so 1 char, one @ and at least one '.'.
iin the pattern means?imeans 'Ignore letter case' if you use it in this way:var reg=/[a-z]+/i,same asvar reg=/[a-zA-Z]+/