Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

I'm getting information out of an html document. Here is the html:

 


Text here <STRONG>Info:</STRONG> <b>Information</b> here.<BR><STRONG>hello</STRONG><BR>
...
Text here <STRONG>Info:</STRONG> <b>blahblah</b><BR><A HREF="blah.html">MORE</STRONG><BR>
...
Text <STRONG>Info:</STRONG> more <b>stuff</b><BR>HELLO<BR>
...
Text <STRONG>Info:</STRONG> more<b>stuff</b><BR><IMG SRC="image.jpg"><BR>

 

I want to be able to find just the "<STRONG>Info:</STRONG> Information changes in <b>here.</b><BR>" and nothing else on the line.

 

I've tried different things like the following:

 

(<STRONG>Info:</STRONG>)(?!<BR>).+<BR>

 

It will then get:

<STRONG>Info:</STRONG> Information <b>here.</b><BR><STRONG>hello</STRONG><BR>

instead of

<STRONG>Info:</STRONG> Information <b>here.</b><BR> 

(which is what i want)

 

Thanks in Advance,

decrypt

Edited by decrypt

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...