日期:2014-05-17  浏览次数:20446 次

求两个正则表达式,取出第一个的A标签的链接和第二个里面红色部分内容
<TR BGCOLOR=eeeeee>
<TD><A HREF=#note></A></TD>
<TD>104C1</TD>
<TD><A HREF=http://www.jhsf.or.jp/cgi-bin/HSRRB/C_ViewDetail.cgi?jcrb=JCRB9036>JCRB9036</A></TD>
<TD>guinea pig</TD>
<TD>fetal body
</TD>
<TD>fetal carcass, benzo(a)pyrene transformed, diploid
</TD>
<TD><A HREF=http://cellbank.nibio.go.jp/~cellbank/en/search_res_det.cgi?RNO=jcrb9036>more</A></TD></TR>



另外


<TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>JCRB No.</TD>
<TD ALIGN="left">JCRB1348</FONT></TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Cell Name</TD>
<TD ALIGN="left">3LL</TD></TR>
<TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Profile</TD>
<TD ALIGN="left">Lewis lung carcinoma cell line.</TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Animal</TD>
<TD ALIGN="left">mouse</TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Species</TD>
<TD ALIGN="left">Mus musclus</TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Sex</TD>
<TD ALIGN="left"></TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Age</TD>
<TD ALIGN="left"></TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Tissue</TD>
<TD ALIGN="left">lung</TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Case History</TD>
<TD ALIGN="left">lung carcinoma</TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Metastasis</TD>
<TD ALIGN="left"></TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Genetics</TD>
<TD ALIGN="left"></TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Lifespan</TD>
<TD ALIGN="left">infinite</TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Morphology</TD>
<TD ALIGN="left">fibroblast-like</TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Characteristics</TD>
<TD ALIGN="left">Cell line having high metastasis potential to lung.</TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Classification</TD>
<TD ALIGN="left">tumor</TD></TR><TR><TD ALIGN="left" BGCOLOR="Gainsboro" NOWRAP>Establisher</TD>

------解决方案--------------------
上面是个循环,循环到最后一个就是你想要的值.