Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...