Link to home
Start Free TrialLog in
Avatar of baghlaf
baghlafFlag for Saudi Arabia

asked on

regular expression to return specified colums values

i have this body of html text, bellow in snipt code, i need by using regular expression in .net to get this values of :
1.applicant name
2.badge number
3.network account
4.departement name
5.cost center
6. extention
7.bleeb
8.email

regares
<style>
body{FONT-FAMILY: Times New Roman,sans-serif;FONT-SIZE: 0.8em;}
</style>
<table cellSpacing=0 cellPadding=4 width=90% border=0>
<tr>
<td>Dear Helpdesk Agent,
<br>
<br>Please escalate the FAX user request below to FAX administrator in your site.
<br>
<br>User Details:
</td>
 
</tr>
</table>
<table cellSpacing=0 cellPadding=4 width=70% border=1 bordercolor=#ffefd5>
<tr>
<td>
 
<table width=100% cellSpacing=4 cellPadding=2 border=0>
<tr>
<td width=50% bgcolor='#f8f8ff'>Applicant name
</td>
<td width=50%>Medical Education
</td>
 
</tr>
<tr>
<td width=50% bgcolor='#f8f8ff'>Badge No. or Department Network Account
</td>
<td width=50%>mededu1@ngha.med.sa
</td>
 
</tr>
<tr>
<td width=50% bgcolor='#f8f8ff'>Network Account
</td>
<td width=50%>NGHA
</td>
 
</tr>
<tr>
<td width=50% bgcolor='#f8f8ff'>Department Name
</td>
<td width=50%>Postgraduate Education 
& Academic Affairs
</td>
 
</tr>
<tr>
<td width=50% bgcolor='#f8f8ff'>Cost Centre Code
</td>
<td width=50%>9667
</td>
 
</tr>
<tr>
<td width=50% bgcolor='#f8f8ff'>Extesnsion
</td>
<td width=50%>13364
</td>
 
</tr>
<tr>
<td width=50% bgcolor='#f8f8ff'>Bleep
</td>
<td width=50%>3364
</td>
 
</tr>
<tr>
<td width=50% bgcolor='#f8f8ff'>Email
</td>
<td width=50%>jebrens@ngha.med.sa
</td>
 
</tr>
</table>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of mankowitz
mankowitz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of baghlaf

ASKER

i need for exampel, for applicant name to return in my example ""Medical Eduction'" and for Bleep i return 3364, and so on for other values,

regards.
Avatar of baghlaf

ASKER

okay,
i have solved the problem which is:
<td width=50%>(?<Name>.*?)\<

this pattern go okay for my issue..

regards.
ok, but I did provide a solution.