I have multiple email addresses within a field and from the dataframe, I have to validate if the email address has @ .com
and separated by a ;
delimiter.
a
-----------------------------------------------
[email protected];[email protected]
sample
[email protected]
[email protected];test2@email.,[email protected]
Expected output :
a a_new
---------------------------------------------------------
[email protected];[email protected] Valid
sample Invalid
[email protected] Valid
[email protected];test2@email.,[email protected] Invalid
The 2nd and fourth records are invalid because of @
and .com
are missing even for a single email address and for multiple email addresses test2@email.,
-> com
is missing along with a different delimiter.
I was able to pull out for a single email address test. Not sure how to test if there are multiple email addresses.