Extrace Pattern(E-mail ID) from text file

Thread Solved

Join Date: Apr 2007
Posts: 34
Reputation: devesh9392 is an unknown quantity at this point 
Solved Threads: 0
devesh9392 devesh9392 is offline Offline
Light Poster

Extrace Pattern(E-mail ID) from text file

 
0
  #1
Jul 12th, 2007
Hi guys,
i need help extracting e-mail id from the text file
can anybody please tell me how can i extract e-mail id and store it in a vaiable using perl regex.
(e-mail id is not always bound to end with .com)

here is my text file:
******************************************
IQXpert 27(ID) John Dow 29(ID) 9999MainStreetSuite111 9999MainStreetSuite1111 Engineer Townsville California12345 Townsville California12345 first.lastname@domain.com UnitedStates UnitedStates Phone Phone555-123-4567 Fax Fax

********************************************

any help/suggestion is appreciated.
thnx.
Last edited by stymiee; Jul 14th, 2007 at 1:32 am. Reason: personal info edited/changed
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: Extrace Pattern(E-mail ID) from text file

 
0
  #2
Jul 12th, 2007
http://search.cpan.org/~miyagawa/Ema.../Email/Find.pm

You should remove that personal information from your post.
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 34
Reputation: devesh9392 is an unknown quantity at this point 
Solved Threads: 0
devesh9392 devesh9392 is offline Offline
Light Poster

Re: Extrace Pattern(E-mail ID) from text file

 
0
  #3
Jul 13th, 2007
Thnx Kevin.
tht was informative but i did it other way bcoz i also had to extract other patterns.

thnx again......
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 4
Reputation: cute121180 is an unknown quantity at this point 
Solved Threads: 0
cute121180 cute121180 is offline Offline
Newbie Poster

Re: Extrace Pattern(E-mail ID) from text file

 
0
  #4
Apr 5th, 2008
Hi,
Can you please tell me how the other way you did to extract some other patterns.
I need some assistance.

Actually, my problem statement is

Number of <<protein>> glucocorticoid receptors <</protein>> in <<cell_type>> lymphocytes <</cell_type>> and their sensitivity to hormone action .

From the above sentence I have to extract 3words before and after the biomedical term classification.
Let me show you an example

For protein, glucocorticoid receptors to this instance
beg1 = beg1
beg2 = Number
beg3 = of
end1 = in
end2 = lymphocytes
end3 = and

For cell_type, lymphocytes instance
beg1 = glucocorticoid
beg2 = receptors
beg3 = in
end1 = and
end2 = their
end3 = sensitivity

Hope you understand what I am talking about.
Please help me.

Looking forward for your reply.

Thanking you in advance
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: Extrace Pattern(E-mail ID) from text file

 
0
  #5
Apr 7th, 2008
post a new thread cute121180 and post the code you have written so far to try and solve your requirements.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 4
Reputation: cute121180 is an unknown quantity at this point 
Solved Threads: 0
cute121180 cute121180 is offline Offline
Newbie Poster

Re: Extrace Pattern(E-mail ID) from text file

 
0
  #6
Apr 7th, 2008
I haven't, I want to start the code. For that i need some help.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: Extrace Pattern(E-mail ID) from text file

 
0
  #7
Apr 7th, 2008
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC