我再把我的问题说明一遍好了
现在有txt里面如下
<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd">
<html>
<head>
<title>Yahoo!奇摩字典</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link href="http://l.yimg.com/tw.yimg.com/i/tw/dictionary/i7/dic.css?v=20071116a" rel="stylesheet" type="text/css">
</head>
<!-- SpaceID=0 robot -->
<!-- end header.inc -->
<body>
<div id="maincol">
<div id="yhtw_masthead">
<div class="mhlogo">
<a href="/"><img src="http://tw.yimg.com/i/tw/dictionary/masthead_logo.gif" alt="Yahoo!奇摩字典" /></a>
</div>
<div class="mhsch">
<form action="http://tw.rd.yahoo.com/referurl/srch/search/dictionary/*
http://tw.search.yahoo.com/search" target="_top">
<input type="hidden" name="fr" value="ush_dict">
<input type="hidden" name="ei" value="UTF-8">
<p>
<label class="t"><input type="text" name="p" /></label>
<label class="s"><input type="submit" value="搜寻网页" /></label>
</p>
<div>
<a href="/">服务首页</a><b>|</b><a href="http://tw.help.cc.yahoo.com/cp_info.html?product=dictionary">服务说明等等.
我想生成一个txt如下(将上述内码里有”yahoo”取出填入)
yahoo
yahoo
yahoo
等.
老大帮帮忙