当前位置: 代码迷 >> J2ME >> j2me如何实现类似正则表达式的功能,提取文中字符?
  详细解决方案

j2me如何实现类似正则表达式的功能,提取文中字符?

热度:1720   发布时间:2013-02-25 21:32:00.0
j2me怎么实现类似正则表达式的功能,提取文中字符???
下面为获取内容,现在想获取列表信息每行的第二列KH2009080003,第三列IDE技术有限公司:
<td><a href="Customer_info.aspx?cid=KH2009080003">KH2009080003</a></td>
<td>IDE技术有限公司</td>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<body class="body">
<div style="text-align:center"><br /><br />
  <form name="form1" method="post" action="CustomerView.aspx" id="form1">
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWNALc5OPwAgL/49e7CQK7q7GGCAKvpPuKAQKM54rGBgL2uKCYBwL9zvKVCgKL0/KVCgK+4PyJCQKh4PyJCQKg4PyJCQKj4PyJCQKl4PyJCQKNi6WLBgLMgIl1AvGpq8AOArTK/twBAtnzgKoPAsLkooEFAueNxZwDAoi35+sOAq3YicEEAtbBq9wCAvvqzasIAsyAjXUC8amvwA4CtMqi3wEC2fPEqg8C9IvBjQYC64vBjQYC6ovBjQYC6YvBjQYC6IvBjQYC74vBjQYC7ovBjQYC7YvBjQYC/IvBjQYC84vBjQYCnOe94ggC94+0nAkCmrmWpAsC9ZffmQYCuLvK3wwCk+TAmQ0C5uTuWgLBjeWUAQKkwOjuDAL/6N6oDQKZ57E/AvSPqHkCl7mKgQMC8pfT9g0aTDSd6omsmr8g2kP/PiYsjIeZ+w==" />

  <table style="height: 24px; width: 920px;">

  <tr style="background-color:#DFE8F7;height: 20px;">

  <td style="height: 20px; width: 50px;">删除</td>

  <td style="height: 20px; width: 90px;">客户编号</td>

  <td style="height: 20px; width: 160px;">公司</td>

  <td style="height: 20px; width: 80px;">联系人</td>

  <td style="height: 20px; width: 108px;">职务</td>

  <td style="height: 20px; width:100px;">电话</td>

  <td style="height: 20px;width:85px">邮箱</td>

  <td style="height: 20px;width:60px">会员类型</td>

  <td style="height: 20px;width:80px">业务员</td>

  </tr>  

   

  <tr>

  <td>

  <input id="Repeater1_ctl00_CheckBox1" type="checkbox" name="Repeater1$ctl00$CheckBox1" />

   

  </td>

  <td><a href="Customer_info.aspx?cid=KH2009080003">KH2009080003</a></td>

<td>IDE技术有限公司</td>

  <td>王双成</td>

  <td></td>

  <td></td>

  <td></td>

  <td>协会会员</td>

  <td>admin</td>

  </tr>

   

  <tr>

  <td>

  <input id="Repeater1_ctl01_CheckBox1" type="checkbox" name="Repeater1$ctl01$CheckBox1" />

   

  </td>

  <td><a href="Customer_info.aspx?cid=KH2009080148">KH2009080148</a></td>

  <td>北京里魁福特新材料技术有限公</td>

  <td>张敏</td>

  <td></td>

  <td>13910090086</td>

  <td>lkftzm@126.com</td>

  <td>协会会员</td>

  <td>admin</td>

  </tr>

   

  <tr>

  <td>

  <input id="Repeater1_ctl02_CheckBox1" type="checkbox" name="Repeater1$ctl02$CheckBox1" />