• After more than 30 years running websites and forums I am retiring.

    I have made many friends through the years. I will cherish my time getting to know you. I wish you all the best. This was not an easy decision to make. The cost to keep the communities running has gotten to the point where it's just too expensive. Security certificates, hosting cost, software renewals and everything else has increased threefold. While costs are up ad revenue is down. It's no longer viable to keep things running.

    All sites will be turned off on Thursday 30 November 2023. If you are interested in acquiring any of the websites I own you can Email Schwarz Network.

Match with Multiple Tables Seperately

enginaar

Newcomer
Joined
Nov 29, 2006
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
 
Top Bottom