Reading until certain word...

decrypt

Well-known member
Joined
Oct 6, 2003
Messages
216
Im getting information out of an html document. Here is the html:

Code:
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.

Ive tried different things like the following:

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

It will then get:
Code:
<STRONG>Info:</STRONG> Information <b>here.</b><BR><STRONG>hello</STRONG><BR>
instead of
Code:
<STRONG>Info:</STRONG> Information <b>here.</b><BR>
(which is what i want)

Thanks in Advance,
decrypt
 
Last edited by a moderator:
Back
Top