!!!!!!!!!!!111给个思路。。。。。。。。。。。。。很急。。。。。。。
需要在一个数据录入的html文本文件中,
解析出一个表的字段的名称(英文),类型,还有中文含义。
请问有什么思路么?
比如这样一段文本文件:::::
<table width="100%" border="0">
<tr>
<td width="100%" colspan="6">
</tr>
<tr>
<td width="12%" class="cpray2" height="30" ><font size="2">编号</font></td>
<td colspan=5 height="30"><font size="2"><%=Arrestid%>
<input type="hidden" name="ArrestId" maxlength="20" value="<%=Arrestid%>">
</font></td>
</tr>
<tr>
<td width="12%" class="cpray2" height="30" ><font size="2" class=cpray5>发文编号</font></td>
<td><input type="text" class="input" name="Articleno" size="20" maxlength="25" value="<%=Articleno%>">
<td width="12%" class="cpray2" height="30" ><font size="2" class=cpray5>发文级别</font></td>
<td width="21%" height="30"><font size="2">
<object classid="clsid:79EF0440-9740-4700-9EC2-487940F066E1" id="aEmitgrade" name="aEmitgrade" height=0 width=0 codebase="../ocx/sltcode.ocx">
<param name="codefile" value="Code_fwjb">
<param name="fontsize" value="9">
</object>
我想解析出这样的结果
中文含义 英文名称 类型
编号,Arrestid,string
发文编号,Articleno,string
发文级别,Code_fwjb,string
。。。。。。。
默认是string类型的
请问该如何做,给个思路,很急。。。。
这里面好像包括如何判断是汉字,
如何在一个字符串中找出其中的汉字字符串。。。
如何查找字符串
帮忙。。。一定给分