Hi all,
In my parallel job, i need to validate email ids coming from source.What are all the things do i need to check whether the email id is valid? i am having
1.checking for the presence of symbol @ and
2.checking for spaces in the id, if any
in my mind.I am thinking of doing all these validations in a transformer stage.kindly suggest.
Example data:
No ID
1 raja@yahoo.com----->this is an valid id
2 ramyahoo-------------> this is an invalid id
Thanks & Regards,
Raja R P
Validate email ID
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 138
- Joined: Wed Jul 16, 2008 9:51 pm
- Location: Kolkata
You can add an indexed lookup for the known Mail service providers to the above two checks for better results.agpt wrote:you can check few other things also for example:
1) there is only one and only one @ symbol available in email id
2) no occurrence of two consecutive periods i.e. (..)
Thanks,
Tony
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
viewtopic.php?t=132811&highlight=
use the code in this post by DSGuru2B to start. you can put the dynamic array in stage variable. Create the varaibles used in the routine as stage variables and then do the checks in another stage variable.
also you can use index function to locate mail extention, but instead of searching for '.ed' search for ',.ed,' with leading and trailing delimiter, you should add leading and trailing delimiter in dynamic array too.
use the code in this post by DSGuru2B to start. you can put the dynamic array in stage variable. Create the varaibles used in the routine as stage variables and then do the checks in another stage variable.
also you can use index function to locate mail extention, but instead of searching for '.ed' search for ',.ed,' with leading and trailing delimiter, you should add leading and trailing delimiter in dynamic array too.
Priyadarshi Kunal
Genius may have its limitations, but stupidity is not thus handicapped.
Genius may have its limitations, but stupidity is not thus handicapped.