I have a HTML source code like this
<table border='0' width='70%'>
<tr bgcolor='#b4b4b4'>
<td width='8%' align='center'>0049</td>
<td width='20%' align='center'>0019A621C04
2</td>
<td width='20%' align='center'>Upstream 0</td>
<td width='22%' align='center'>10.113.104.
246</td>
<td width='10%' align='center'>-3</td>
<td width='10%' align='center'>50.5</td>
<td width='10%' align='center'>36.1</td>
</tr>
</table>
I want to use the matches function in String type to find something.
I have a variable line to store each line in order,
so, first time, the variable line will contains <table border='0' width='70%'>
second time, the variable line will contains <tr bgcolor='#b4b4b4'> and so on.
For each time, I want to use the line.matches() function to find whether a particular line contains any td tags.
anyone can tell
Start Free Trial