objective c - Regex for Email validation in iOS -
I want to check the valid email address in my iOS application. I want to check "abc@abc.com", "abc@abc.co.in" Now I am doing it with two different regex I want to check them for a condition in regedx.
Simple form: ^ [^ @] + @ [^.] + \.) {1,2} \. W + $
the ([^.] +.?) Will match the subdomain, one or two times, will match your two instances but not abc@sub.abc.co. In
Comments
Post a Comment