<tr> <td scope="col" align="center" valign="middle" nowrap> 1</td> <td scope="col" align="left" valign="middle" nowrap> 13110581130</td> <td scope="col" align="left" valign="middle" nowrap> 徐小胖</td> <td scope="col" align="center" valign="middle" nowrap> 男</td> <td scope="col" align="center" valign="middle" nowrap> 2013</td> <td scope="col" align="left" valign="middle" nowrap> </td> <td scope="col" align="left" valign="middle" nowrap> 計(jì)算機(jī)科學(xué)與技術(shù)</td> <td scope="col" align="center" valign="middle" nowrap> </td> <td scope="col" align="center" valign="middle" nowrap> </td> <td scope="col" align="left" valign="middle" nowrap> </td> </tr><tr> <td scope="col" align="center" valign="middle" nowrap> 2</td> <td scope="col" align="left" valign="middle" nowrap> 13110581131</td> <td scope="col" align="left" valign="middle" nowrap> 興小胖</td> <td scope="col" align="center" valign="middle" nowrap> 男</td> <td scope="col" align="center" valign="middle" nowrap> 2013</td> <td scope="col" align="left" valign="middle" nowrap> </td> <td scope="col" align="left" valign="middle" nowrap> 計(jì)算機(jī)科學(xué)與技術(shù)</td> <td scope="col" align="center" valign="middle" nowrap> </td> <td scope="col" align="center" valign="middle" nowrap> </td> <td scope="col" align="left" valign="middle" nowrap> </td> </tr>
我想匹配td內(nèi)的數(shù)據(jù),比如 徐小胖
,男
/<td scope="col" align=.*</td>/g
上面的正則還可以再優(yōu)化嗎?能更精確的抓取數(shù)據(jù)嗎?謝謝指點(diǎn)