If i have similar requirement where I want to create an array with all the <tr>
. I want to split with start <tr>
and </tr>
. How can i give both start and end in split function.
<!DOCTYPE html>
<html>
<body>
<h2>Basic HTML Table</h2>
<table style="width:100%">
<tr>
<th>Firstname</th>
</tr>
<tr>
<td>Jill</td>
</tr>
<tr>
<td>Eve</td>
</tr>
<tr>
<td>John</td>
</tr>
</table>
</body>
</html>