|
我用正则取到的文本顺序是没错的。可是导入超级列表框里的时候顺序怎么就乱了?
怎么解决啊?- <table class="top" cellspacing="0" rules="all" border="1" id="GridView1" style="color:#505050;background-color:activeborder;border-color:Black;font-size:10pt;width:700px;border-collapse:collapse;">
- <tr align="center" style="background-color:#E0E0E0;height:15px;">
- <td style="height:4px;width:10%;">405327908</td><td align="center" style="height:4px;width:30%;">2012-04-20 10:40:01</td><td align="center" style="height:4px;width:25%;">13544433394</td><td align="center" style="height:4px;width:15%;">30</td><td align="center" style="height:4px;width:20%;"><input type="button" value="请选择" onclick="javascript:__doPostBack('GridView1','Select$0')" style="font-size:X-Small;height:18px;" /></td>
- </tr><tr align="center" style="background-color:#EFEFEF;height:15px;">
- <td style="height:4px;width:10%;">405302335</td><td align="center" style="height:4px;width:30%;">2012-04-20 02:16:47</td><td align="center" style="height:4px;width:25%;">13544309629</td><td align="center" style="height:4px;width:15%;">30</td><td align="center" style="height:4px;width:20%;"><input type="button" value="请选择" onclick="javascript:__doPostBack('GridView1','Select$1')" style="font-size:X-Small;height:18px;" /></td>
- </tr><tr align="center" style="background-color:#E0E0E0;height:15px;">
- <td style="height:4px;width:10%;">405261600</td><td align="center" style="height:4px;width:30%;">2012-04-19 21:08:51</td><td align="center" style="height:4px;width:25%;">13662328644</td><td align="center" style="height:4px;width:15%;">100</td><td align="center" style="height:4px;width:20%;"><input type="button" value="请选择" onclick="javascript:__doPostBack('GridView1','Select$2')" style="font-size:X-Small;height:18px;" /></td>
- </tr><tr align="center" style="background-color:#EFEFEF;height:15px;">
- <td style="height:4px;width:10%;">405259151</td><td align="center" style="height:4px;width:30%;">2012-04-19 21:02:17</td><td align="center" style="height:4px;width:25%;">13662328644</td><td align="center" style="height:4px;width:15%;">100</td><td align="center" style="height:4px;width:20%;"><input type="button" value="请选择" onclick="javascript:__doPostBack('GridView1','Select$3')" style="font-size:X-Small;height:18px;" /></td>
- </tr><tr align="center" style="background-color:#E0E0E0;height:15px;">
- <td style="height:4px;width:10%;">405243423</td><td align="center" style="height:4px;width:30%;">2012-04-19 20:20:58</td><td align="center" style="height:4px;width:25%;">13450416339</td><td align="center" style="height:4px;width:15%;">50</td><td align="center" style="height:4px;width:20%;"><input type="button" value="请选择" onclick="javascript:__doPostBack('GridView1','Select$4')" style="font-size:X-Small;height:18px;" /></td>
- </tr><tr align="center" style="background-color:#EFEFEF;height:15px;">
- <td style="height:4px;width:10%;">405206162</td><td align="center" style="height:4px;width:30%;">2012-04-19 18:51:34</td><td align="center" style="height:4px;width:25%;">13711488612</td><td align="center" style="height:4px;width:15%;">30</td><td align="center" style="height:4px;width:20%;"><input type="button" value="请选择" onclick="javascript:__doPostBack('GridView1','Select$5')" style="font-size:X-Small;height:18px;" /></td>
- </tr><tr align="center" style="background-color:#E0E0E0;height:15px;">
- <td style="height:4px;width:10%;">405141474</td><td align="center" style="height:4px;width:30%;">2012-04-19 15:17:49</td><td align="center" style="height:4px;width:25%;">13560241212</td><td align="center" style="height:4px;width:15%;">50</td><td align="center" style="height:4px;width:20%;"><input type="button" value="请选择" onclick="javascript:__doPostBack('GridView1','Select$6')" style="font-size:X-Small;height:18px;" /></td>
- </tr><tr align="center" style="background-color:#EFEFEF;height:15px;">
- <td style="height:4px;width:10%;">405135531</td><td align="center" style="height:4px;width:30%;">2012-04-19 14:43:50</td><td align="center" style="height:4px;width:25%;">15986507773</td><td align="center" style="height:4px;width:15%;">50</td><td align="center" style="height:4px;width:20%;"><input type="button" value="请选择" onclick="javascript:__doPostBack('GridView1','Select$7')" style="font-size:X-Small;height:18px;" /></td>
- </tr><tr align="center" style="background-color:#E0E0E0;height:15px;">
- <td style="height:4px;width:10%;">405092682</td><td align="center" style="height:4px;width:30%;">2012-04-19 11:18:46</td><td align="center" style="height:4px;width:25%;">13798139813</td><td align="center" style="height:4px;width:15%;">100</td><td align="center" style="height:4px;width:20%;"><input type="button" value="请选择" onclick="javascript:__doPostBack('GridView1','Select$8')" style="font-size:X-Small;height:18px;" /></td>
- </tr><tr align="center" style="background-color:#EFEFEF;height:15px;">
- <td style="height:4px;width:10%;">405086425</td><td align="center" style="height:4px;width:30%;">2012-04-19 10:47:04</td><td align="center" style="height:4px;width:25%;">13760867200</td><td align="center" style="height:4px;width:15%;">100</td><td align="center" style="height:4px;width:20%;"><input type="button" value="请选择" onclick="javascript:__doPostBack('GridView1','Select$9')" style="font-size:X-Small;height:18px;" /></td>
- </tr><tr>
- <td colspan="5">
复制代码 上面这个是测试的文本 这个是正则的语句- <td style=.+>.+</td><td align=.+>.+</td><td a.+>(\d+)</td><td align=.+>\d+</td>
复制代码 |
求助知识:请将问题描述清楚,最好把你有问题的源码打包上传上来,这样更方便大家帮助你。 友情提醒:本版被采纳的主题可在 申请荣誉值 帖子申请荣誉值,获得 3点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
|