Click here to Skip to main content
12,692,105 members (33,197 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
How to find candidate email Id from a resume (word or pdf file) in during bulk upload...I am able to extract the email ids..But how to get exactly the candidate email id from a CV...
Posted 2-Feb-13 7:36am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can define the email pattern by using the RegEx then you can find the email address in doc.

Please refer below URL[^]
Abhinav S 2-Feb-13 13:14pm
Neat link.
Korathu 2 3-Feb-13 0:11am
Email Ids already extracted.But I wish to get the candidate email id alone from a resume..How can one get exactly that if there are multiple email ids in the resume ...
Korathu 2 3-Feb-13 0:15am
I mean how to extract email ids from the word or pdf(resume) file)...I am able to extract..But if there are multiple email ids how can one get the exact candidate email id....Actualy i wish to insert only the candidate email id and filename from the resumes into database
during bulk upload...
Edo Tzumer 3-Feb-13 1:20am
Then you need a known pattern of the CV in order to avoid other emails, like of a company etc.

Otherwise, you can't be sure which email is the candidate.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

try this is in following possible using Regx...
1.Map your resume folder.
2.Fect all file in FileInfo[].
3.Retrive using for file using reader
5.Give email patter.
6.pass that data to regx match method in for loop...

StreamReader reader;
        int openIndex;
        string resume_data;

 string pattern = @"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";

        DirectoryInfo di = new DirectoryInfo(Server.MapPath("~/resumes"));
        FileInfo[] rgFiles = di.GetFiles("*.doc");
        foreach (FileInfo fi in rgFiles)
            resume_data = "";
            reader = new StreamReader(fi.FullName);
            resume_data = reader.ReadToEnd();

	foreach (Match m in Regex.Matches(resume_data , pattern))
                txtEmailds.Text = txtEmailds.Text + "  " + m.Value;

...try as is working on my side ...try by implementing your logic as per ur requirements....
also search for "Regx class in" on it...
go through following link...[^]
....hope it will help u

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 3 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100