For example,to strip out key/value pairs from html like below:
<tr>
<td id="td3" class="td3" bgcolor="#FFFFFF" colspan="4">■ Related Information </td>
</tr>
<tr>
<td id="td5" class="td5" width="10%">job title:</td>
<td id="td5" class="td5" width="90%" colspan="3">Sales Representitive</td>
</tr>
<tr>
<td id="td5" class="td5" width="10%">Date:</td>
<td id="td5" class="td5" width="40%">2009-9-15</td>
</tr>
<tr>
<td id="td5" class="td5" width="10%">Location:</td>
<td id="td5" class="td5" width="40%">Jiangyin</td>
</tr>
<tr>
<td id="td5" class="td5" width="10%">Degree:</td>
<td id="td5" class="td5" width="40%">Bachelor</td>
<td id="td5" class="td5" width="10%">Major:</td>
<td id="td5" class="td5" width="40%">No limit</td>
</tr>
<tr>
<td id="td5" class="td5" width="10%">Sex:</td>
<td id="td5" class="td5" width="40%">No limit</
</tr>
<tr>
<td id="td5" class="td5" width="10%">Type:</td>
<td id="td5" class="td5" width="40%">Fulltime</td>
<td id="td5" class="td5" width="10%"></td>
<td id="td5" class="td5" width="40%"></td>
</tr>
I've been tired of writing long regular expression. Is there an easier way to do this?