|
5精币
- <table cellpadding="3" cellspacing="1">
- <tr>
- <th>
- <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
- <a href="javascript:listTable.sort('user_id'); ">编号</a><img src="images/sort_desc.gif"> </th>
- <th><a href="javascript:listTable.sort('user_name'); ">会员名称</a></th>
- <th><a href="javascript:listTable.sort('email'); ">邮件地址</a></th>
- <th><a href="javascript:listTable.sort('is_validated'); ">是否已验证</a></th>
- <th>可用资金</th>
- <th>冻结资金</th>
- <th>等级积分</th>
- <th>消费积分</th>
- <th><a href="javascript:listTable.sort('reg_time'); ">注册日期</a></th>
- <th>操作</th>
- <tr>
- <tr>
- <td><input type="checkbox" name="checkboxes[]" value="3" notice="0"/>3</td>
- <td class="first-cell">李四</td>
- <td><span onclick="listTable.edit(this, 'edit_email', 3)">1234@qq.com</span></td>
- <td align="center"> <img src="images/no.gif"> </td>
- <td>0.00</td>
- <td>0.00</td>
- <td>0</td>
- <td>0</td>
- <td align="center">2016-02-03</td>
- <td align="center">
- <a href="users.php?act=edit&id=3" title="编辑"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>
- <a href="users.php?act=address_list&id=3" title="收货地址"><img src="images/book_open.gif" border="0" height="16" width="16" /></a>
- <a href="order.php?act=list&user_id=3" title="查看订单"><img src="images/icon_view.gif" border="0" height="16" width="16" /></a>
- <a href="account_log.php?act=list&user_id=3" title="查看账目明细"><img src="images/icon_account.gif" border="0" height="16" width="16" /></a>
- <a href="javascript:confirm_redirect('您确定要删除该会员账号吗?', 'users.php?act=remove&id=3')" title="移除"><img src="images/icon_drop.gif" border="0" height="16" width="16" /></a>
- </td>
- </tr>
- <tr>
- <td><input type="checkbox" name="checkboxes[]" value="2" notice="1"/>2</td>
- <td class="first-cell">张三</td>
- <td><span onclick="listTable.edit(this, 'edit_email', 2)">123@qq.com</span></td>
- <td align="center"> <img src="images/no.gif"> </td>
- <td>1576.00</td>
- <td>0.00</td>
- <td>0</td>
- <td>0</td>
- <td align="center">2016-02-03</td>
- <td align="center">
- <a href="users.php?act=edit&id=2" title="编辑"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>
- <a href="users.php?act=address_list&id=2" title="收货地址"><img src="images/book_open.gif" border="0" height="16" width="16" /></a>
- <a href="order.php?act=list&user_id=2" title="查看订单"><img src="images/icon_view.gif" border="0" height="16" width="16" /></a>
- <a href="account_log.php?act=list&user_id=2" title="查看账目明细"><img src="images/icon_account.gif" border="0" height="16" width="16" /></a>
- <a href="javascript:confirm_redirect('该会员有余额或欠款\n您确定要删除该会员账号吗?', 'users.php?act=remove&id=2')" title="移除"><img src="images/icon_drop.gif" border="0" height="16" width="16" /></a>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <input type="hidden" name="act" value="batch_remove" />
- <input type="submit" id="btnSubmit" value="删除会员" disabled="true" class="button" /></td>
- <td align="right" nowrap="true" colspan="8">
- <!-- $Id: page.htm 14216 2008-03-10 02:27:21Z testyang $ -->
- <div id="turn-page">
- 总计 <span id="totalRecords">2</span>
- 个记录分为 <span id="totalPages">1</span>
- 页当前第 <span id="pageCurrent">1</span>
- 页,每页 <input type='text' size='3' id='pageSize' value="15" onkeypress="return listTable.changePageSize(event)" />
- <span id="page-link">
- <a href="javascript:listTable.gotoPageFirst()">第一页</a>
- <a href="javascript:listTable.gotoPagePrev()">上一页</a>
- <a href="javascript:listTable.gotoPageNext()">下一页</a>
- <a href="javascript:listTable.gotoPageLast()">最末页</a>
- <select id="gotoPage" onchange="listTable.gotoPage(this.value)">
- <option value='1'>1</option> </select>
- </span>
- </div>
- </td>
- </tr>
- </table>
复制代码
要取出的内容是用户名:张三,还有用户ID:2,是>2</td> 这里面的数字,请问正则应该怎么写呢?
<td><input type="checkbox" name="checkboxes[]" value="2" notice="1"/>2</td>
<td class="first-cell">张三</td>
|
最佳答案
查看完整内容
正则表达式:type="checkbox" name=".*?" value=".*?" notice=".*?"/>(\d+)[\S\s]*?(.*?)
求助知识:请将问题描述清楚,最好把你有问题的源码打包上传上来,这样更方便大家帮助你。 友情提醒:本版被采纳的主题可在 申请荣誉值 帖子申请荣誉值,获得 3点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
|