Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/04/2007, 14:40
blue_devil
 
Fecha de Ingreso: abril-2007
Mensajes: 2
Antigüedad: 17 años, 11 meses
Puntos: 0
obtener tabla de documento html usando expresiones regulares (Regex)

Buenas.

Estoy intentando obtener cierta información de un documento HTML usando Regex. Exactamente una tabla que es de la siguiente forma:

<table class="xxxx" cellspacing="0" align="center">

<tr>

<td align="left">

<a href="hhhhhhhhhhhh"></a>

<b>JJJJJJJJJJ</b>

</td>

<td align="left">

<a href="hhhhhhhhhhhh"></a>

<b>JJJJJJJJJJ</b>

</td>

</tr>



<tr>

<td align="left">

<a href="hhhhhhhhhhhh"></a>

<b>JJJJJJJJJJ</b>

</td>

<td align="left">

<a href="hhhhhhhhhhhh"></a>

<b>JJJJJJJJJJ</b>

</td>

</tr>

</table>

De la tabla quisiera obtener los datos "hhhhhhhhhhhh" y JJJJJJJJJJJJ de todas las celdas. Para ello estoy intentando usar expresiones regulares, pero no soy capaz de formular la expresión adecuada.

Si alguien conoce la forma de hacerlo agradecería su ayuda.