regex to parse... multiline ? :I - 06/12/07 09:01 PM
Hi guys, i have to parse something like this, from a web page:
yes, it's a simple table.. problem is, i can't have all in one line because it's too long.. so.. ideas ?
i'm only intrested in the bold text.. the structure is always the same.. but on the page there are other things too.. so.. first of all i have to pick up only the <tr>..</tr> then the text.. waah.
it's possible to use regex in this case ? other methods ?
ty
Quote:
<tr><th> <a href="LINK1">blablabla</a>
<a href="LINK2">blablabla</a>
<a href="LINK3">blablabla</a></th>
<th>SOMETHING1</th>
<th>SOMETHING2</th>
<th>SOMETHING3</th>
<th>SOMETHING4</th>
<th>SOMETHING5</th>
</tr>
<tr> same thing blahblah </tr>
<tr> same thing blahblah </tr>
<tr> same thing blahblah </tr>
<a href="LINK2">blablabla</a>
<a href="LINK3">blablabla</a></th>
<th>SOMETHING1</th>
<th>SOMETHING2</th>
<th>SOMETHING3</th>
<th>SOMETHING4</th>
<th>SOMETHING5</th>
</tr>
<tr> same thing blahblah </tr>
<tr> same thing blahblah </tr>
<tr> same thing blahblah </tr>
yes, it's a simple table.. problem is, i can't have all in one line because it's too long.. so.. ideas ?
i'm only intrested in the bold text.. the structure is always the same.. but on the page there are other things too.. so.. first of all i have to pick up only the <tr>..</tr> then the text.. waah.
it's possible to use regex in this case ? other methods ?
ty