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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -