Match with Multiple Tables Seperately

enginaar

Newcomer
Joined
Nov 29, 2006
Messages
1
Hello,

I'm trying to match a regexp with table tags in an html. There are three tables in my page and I want to match each of them seperately. I'm using the followings regexp.

<table(.*)>(.*)</table>

This matches from the first tables table tag to the last tables closing tag. How can I make it to match seperately with all three.

Html file looks like below

<table>
<tr>
<td>First Table</td>
</tr>
</table>

Some Html Here

<table>
<tr>
<td>Second Table</td>
</tr>
</table>

Some Html Here

<table>
<tr>
<td>Third Table</td>
</tr>
</table>

Thanks
 
Back
Top