例如,原网页源代码如下:
- <TABLE cellSpacing=0 cellPadding=0 border=0>
- <TBODY>
- <TR></TR>
- <TR>
- <TD vAlign=top width=95 height=95>
- <TABLE cellSpacing=0 cellPadding=0 width=95 border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle width=75 height=95><A class=linkImg
- href="/phoinfo/EF23922CFD54D6216575A84D16CC9E8DDT/A636ACC2EDDA4F9C9C8FF0D515E4A5F4DS"><IMG
- class=photoBorder id=EF23922CFD54D6216575A84D16CC9E8DDT
-
- title=001 onmouseout=closedialog(event,this);
- src="http://photo1.bababian.com/upload13/20080919/EF23922CFD54D6216575A84D16CC9E8D_75.jpg"
- name=setphoto></A></TD>
- <TD style="FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif"
- width=20> </TD></TR></TBODY></TABLE></TD>
- <TD vAlign=top width=95 height=95>
- <TABLE cellSpacing=0 cellPadding=0 width=95 border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle width=75 height=95><A class=linkImg
- href="/phoinfo/A66133862742F7EA832FAF9C4B11B43FDT/A636ACC2EDDA4F9C9C8FF0D515E4A5F4DS"><IMG
- class=photoBorder id=A66133862742F7EA832FAF9C4B11B43FDT
-
- title=002 onmouseout=closedialog(event,this);
- src="http://photo1.bababian.com/upload13/20080919/A66133862742F7EA832FAF9C4B11B43F_75.jpg"
- name=setphoto></A></TD>
- <TD style="FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif"
- width=20> </TD></TR></TBODY></TABLE></TD>
- <TD vAlign=top width=95 height=95>
- <TABLE cellSpacing=0 cellPadding=0 width=95 border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle width=75 height=95><A class=linkImg
- href="/phoinfo/5AB4224E589EE3B6E5BED440EA1C5FD4DT/A636ACC2EDDA4F9C9C8FF0D515E4A5F4DS"><IMG
- class=photoBorder id=5AB4224E589EE3B6E5BED440EA1C5FD4DT
-
- title=003 onmouseout=closedialog(event,this);
- src="http://photo1.bababian.com/upload13/20080919/5AB4224E589EE3B6E5BED440EA1C5FD4_75.jpg"
- name=setphoto></A></TD>
- <TD style="FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif"
- width=20> </TD></TR></TBODY></TABLE></TD>
- <TD vAlign=top width=95 height=95>
- <TABLE cellSpacing=0 cellPadding=0 width=95 border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle width=75 height=95><A class=linkImg
- href="/phoinfo/A760F4EC50162AEA524E3276B8DF2E95DT/A636ACC2EDDA4F9C9C8FF0D515E4A5F4DS"><IMG
- class=photoBorder id=A760F4EC50162AEA524E3276B8DF2E95DT
-
- title=004 onmouseout=closedialog(event,this);
- src="http://photo1.bababian.com/upload13/20080919/A760F4EC50162AEA524E3276B8DF2E95_75.jpg"
- name=setphoto></A></TD>
- <TD style="FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif"
- width=20> </TD></TR></TBODY></TABLE></TD>
- <TD vAlign=top width=95 height=95>
- <TABLE cellSpacing=0 cellPadding=0 width=95 border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle width=75 height=95><A class=linkImg
- href="/phoinfo/EFCC42B5A9F5D315AFD37ACE66B70247DT/A636ACC2EDDA4F9C9C8FF0D515E4A5F4DS"><IMG
- class=photoBorder id=EFCC42B5A9F5D315AFD37ACE66B70247DT
-
- title=005 onmouseout=closedialog(event,this);
- src="http://photo1.bababian.com/upload13/20080919/EFCC42B5A9F5D315AFD37ACE66B70247_75.jpg"
- name=setphoto></A></TD></TR></TBODY></TABLE></TD>
- <TR></TR>
- <TR>
- <TD vAlign=top width=95 height=95>
- <TABLE cellSpacing=0 cellPadding=0 width=95 border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle width=75 height=95><A class=linkImg
- href="/phoinfo/1A4F387882E90149942754220858D67ADT/A636ACC2EDDA4F9C9C8FF0D515E4A5F4DS"><IMG
- class=photoBorder id=1A4F387882E90149942754220858D67ADT
-
- title=006 onmouseout=closedialog(event,this);
- src="http://photo1.bababian.com/upload13/20080919/1A4F387882E90149942754220858D67A_75.jpg"
- name=setphoto></A></TD>
- <TD style="FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif"
- width=20> </TD></TR></TBODY></TABLE></TD>
- <TD vAlign=top width=95 height=95>
- <TABLE cellSpacing=0 cellPadding=0 width=95 border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle width=75 height=95><A class=linkImg
- href="/phoinfo/159199B9EC7DCF2218011DC9515AA70ADT/A636ACC2EDDA4F9C9C8FF0D515E4A5F4DS"><IMG
- class=photoBorder id=159199B9EC7DCF2218011DC9515AA70ADT
-
- title=007 onmouseout=closedialog(event,this);
- src="http://photo1.bababian.com/upload13/20080919/159199B9EC7DCF2218011DC9515AA70A_75.jpg"
- name=setphoto></A></TD>
- <TD style="FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif"
- width=20> </TD></TR></TBODY></TABLE></TD>
- <TD vAlign=top width=95 height=95>
- <TABLE cellSpacing=0 cellPadding=0 width=95 border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle width=75 height=95><A class=linkImg
- href="/phoinfo/8CFF33CD16EE371998F35178D5D5A215DT/A636ACC2EDDA4F9C9C8FF0D515E4A5F4DS"><IMG
- class=photoBorder id=8CFF33CD16EE371998F35178D5D5A215DT
-
- title=008 onmouseout=closedialog(event,this);
- src="http://photo1.bababian.com/upload13/20080919/8CFF33CD16EE371998F35178D5D5A215_75.jpg"
复制代码
我想提取其中的图片地址提取出来输出到一个txt文件中去,结果如下
- http://photo1.bababian.com/upload13/20080919/EF23922CFD54D6216575A84D16CC9E8D_75.jpg
- http://photo1.bababian.com/upload13/20080919/A66133862742F7EA832FAF9C4B11B43F_75.jpg
- http://photo1.bababian.com/upload13/20080919/5AB4224E589EE3B6E5BED440EA1C5FD4_75.jpg
- http://photo1.bababian.com/upload13/20080919/A760F4EC50162AEA524E3276B8DF2E95_75.jpg
- http://photo1.bababian.com/upload13/20080919/EFCC42B5A9F5D315AFD37ACE66B70247_75.jpg
- http://photo1.bababian.com/upload13/20080919/1A4F387882E90149942754220858D67A_75.jpg
- http://photo1.bababian.com/upload13/20080919/159199B9EC7DCF2218011DC9515AA70A_75.jpg
- .......
复制代码
请问高手怎么写?我不太会批处理。 |