I am trying to validate a TextEdit in order to contains a truly email address. I have a regular expression to do that, but it validates more than one address, and I just want to validate only one address, no more.
Here you are the expression I have:
/^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/
It validates something like this:
yulien.paz@cav.desoft.cu, wcampbell@cav.desoft.cu
I need take the second email address out of the TextEdit.
So, How can I do that??
Note: I am sorry about my English.