Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 03-05-2005, 05:02 PM   #1
Solid State Member
 
Join Date: Aug 2004
Posts: 8
Default using regular expressions

hi there

i'm trying to extract certain information from an HTML source, i've used the : WebClient from the .NET library to Screen Scrspe the web page the second part is to use RegEx to EXTRACT usefull information to me from the HTML source available and because i'm not very familiar with regular expressions i need help to do this for example:

<td class="subhead" colspan="2"><font size="-1">I NEED TO EXTRACT THIS</font></td>

and then to place whatever is extracted within XML tag (i.e. converting)

thanks and regards

jay
__________________

jmahdi is offline   Reply With Quote
Old 03-21-2005, 08:41 AM   #2
Solid State Member
 
Join Date: Aug 2004
Posts: 8
Default

ok guys no wurries i've sorted that one out but mayb e s/one can help me this time?!

i want to strip ceartin information from between tags but they differ in some things:

1:
<b><a.*?>(strip this 1)</a></b>

2:
<b>(strip this 2)</b>

3:

<b><a.*?><b>(strip this 3)</b></a></b>

Using the same regex object(i.e one expression for all 3), it got to be....

please can any one help

[by the way i'm using C#]

regards
jay
jmahdi is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 02:00 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0