|
10精币
例如是手机淘宝,POST后返回的数据很乱,字母什么的,我想要的是替换成纯文本方式。
正则匹配式可以实现,但是字母那么多好麻烦,精易模块上的只取文字也行,但是却吧换行符和一切非汉字的字母都
替换了,我要取的内容是汉字和数字,有办法实现么?
下面是POST后返回的数据- <?xml version="1.0" encoding="utf-8"?>
- <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="Cache-Control" content="must-revalidate,no-cache"/>
- <meta content="240" name="MobileOptimized" />
- <meta content="width=device-width; initial-scale=1.2; minimum-scale=1.0; maximum-scale=2.0" name="viewport" />
- <link rel="apple-touch-icon-precomposed" />
- <meta name="HandheldFriendly" content="true" />
- <title>QQ - 直充 - 手机淘宝网</title>
- <meta name="description" content="手机淘宝网-直冲-qq,快速充值,QQ会员,QQ红钻,QQ黄钻,QQ蓝钻,QQ紫钻,QQ粉钻,QQ黑钻,QQ交友,QQ音乐绿钻,点击还有更多精彩!" /> <meta name="keywords" content="手机淘宝网,qq,快速充值,QQ会员,QQ红钻,QQ黄钻,QQ蓝钻,QQ紫钻,QQ粉钻,QQ黑钻,QQ交友,QQ音乐绿钻" /> <meta name="author" content="m.taobao.com" /> <meta name="copyright" content="Copyright ©m.taobao.com 版权所有" />
- <meta name="revisit-after" content="1 days" />
- <link rel="canonical" />
- <style type="text/css" media="screen">
- body,div,p,h1,h2,h3,em,span,a,td,form,input,select,textarea{margin:0;padding:0;font-size:14px;line-height:19px;font-style:normal;}
- h2,h3,em,strong{font-weight:bold;}
- a img{border:none;}
- a{color:#106eb4;text-decoration:none;}
- input,select,textarea{vertical-align:middle;}
- body{color:#333;}
- .login,.crumbs,.box h2,.box h3,.box .detail,.pager,.ft,.tab,.sub-tab{padding:0 3px;}
- .txt{height:24px;border:1px #b7b7b7 solid;}
- .btn,.btn-blue{height:26px;padding:0 12px;color:#fff;}
- .btn{background:#f37703;border:#e45d01 1px solid;}
- .btn-blue{background:#158fee;border:#0181e4 1px solid}
- .hd,.logo,.login{height:28px;line-height:28px;}
- .hd{padding:0 10px;background:#eee;border-bottom:#ccc 1px solid;}
- .logo{color:#808080;font-weight:400;}
- .login{text-align:right;}
- .site-nav{margin-top:12px;text-align:center}
- .search{padding:10px;text-align:center}
- .search .txt,.b-search .txt{height:22px;line-height:22px;border:#ef8016 2px solid;}
- .search .s-btn,.b-search .s-btn{padding:0 3px;}
- .search .txt{width:250px;margin-bottom:10px;}
- .b-search .txt{width:160px}
- .h-oran{height:27px;line-height:27px;margin-bottom:6px;color:#f0783c;background:url(http://a.tbcdn.cn/mw/s/mi/images/oran_bg_b.png) repeat-x 0;border-top:#fec551 1px solid;}
- .box,.mt{margin-top:10px;}
- .oran{color:#f50;}
- .red,.err{color:#f00;}
- .green,.suc{color:#068a38;}
- .gray{color:#999;}
- .mar{color:#e26e23;}
- .blue{color:#004d80;}
- .white{color:#fff;}
- .center{text-align:center}
- hr{margin:10px 0;height:0px;border:none;border-top:1px #999 solid;color:#999}
- .ft{margin-top:12px;padding:11px 0 10px 0;border-top:1px solid #ccc;text-align:center;background:#f0f0f0;font-size:14px;}
- .pic{padding-right:6px;vertical-align:top;}
- .blue-box,.red-box,.gray-box{padding:10px 10px 8px 10px;}
- .blue-box{border:1px solid #3fb3ff;background:#e3f5fd;}
- .red-box{border:1px solid #ff8080;background:#fff2f2;color:#ff0000}
- .gray-box{border:1px solid #bfbfbf;background:#f2f2f2;}
- textarea{margin-bottom:10px;}
- .banner{width:246px;height:47px;}
- .tab{height:28px;line-height:28px;background:#faf0be;border-top:#fec551 1px solid;border-bottom:#fec551 1px solid;margin:0;}
- .sub-tab{height:29px;line-height:29px;background:#f7f6ec;border-bottom:#fec551 1px solid;margin:0;}
- .tab .cur{background:#f2743a;color:#fff;padding:3px 7px;}
- .bbn{border-bottom:none}
- .pager .pager-txt{width:56px;height:19px;}
- .list-pic{width:100px;height:100px;}
- .s-pic{width:100px;height:100px;}
- .s-pic-2{width:120px;height:120px;}
- .b-pic-detail{width:220px;}
- .search_index{text-align:center;}
- .search_index .s-txt{width:200px;height:26px;line-height:26px;}
- .pro-hei{height:120px}
- .pro-wid{width:120px}
- .pro-td{width:120px;text-align:center;}
- .s-td-2{width:120px;vertical-align:top;} </style> <style type="text/css" >
- .success-tip{background:#f0ffe5 url(http://a.tbcdn.cn/mw/s/mi/icons/success.png) no-repeat 10px 10px;text-indent:19px;padding:10px 10px 8px 10px;border:1px solid #54c20a}
- .wrong-tip{background:#fff2f2 url(http://a.tbcdn.cn/mw/s/mi/icons/wrong.png) no-repeat 10px 10px;text-indent:19px;}
- .b-box{background:#e3f5fd url(http://a.tbcdn.cn/mw/s/mi/icons/exclamation.png) no-repeat 10px 10px; text-indent:19px}
- .cz-tit{height:28px;line-height:28px;background:#106eb4;padding:0 3px;margin-bottom:10px;color:#fff}
- .cz-tit a{color:#fff}
- .cz-tit span{padding-top:2px;}
- .nav{padding:10px 0 0 3px;background-color:#106eb4;}
- .nav span{padding:6px 10px;}
- .nav a{color:#fff}
- .nav .current{background-color:#eaf6ff;font-weight:bold;color:#333;}
- .nav-dep,.cz-crumbs{background-color:#eaf6ff;color:#333; padding:5px 6px 3px 6px; border-bottom:#d3e5f3 1px solid}
- .add-mes td{padding-bottom:10px;}
- .add-mes td.pb0{padding-bottom:0}
- .mt5{ margin-top:5}
- .black{color:#000}
- .t-nav{border-bottom:2px solid #ff7300;line-height:20px;}
- .tn-bg{background:#ff7300;width:70px;color:#fff}
- .dis-criword a{font-size:12px}
- .dis-criword{font-size:12px}
- .box{font-size:12px}
- .rank-num{background:#C60000;padding:2px;padding-left:4px;padding-right:4px;color:#fff;font-size:14px;}
- .navibg{background:#e1e1e1;padding:5px;border-top:0px solid #9b9b9b;border-bottom:1px solid #9b9b9b}
- .tb-pd{padding:5px;border-bottom:1px solid #CECECE}
- .tb-pd a{color:#3399FF}
- .tb-line{border-left:1px solid #CECECE;padding-left:10px;}
- .tn-align{text-align:left;padding-left:5px}
- .ri-align{padding-right:5px}
- .ablack{color:#000}
- .se-nav{border:0px solid #9b9b9b;background:#DFDFDF;padding:5px;}
- .senav-a{border-right:1px solid #CECECE;line-height:25px;padding-left:5px;font-size:14px;}
- .nobd{border:none}
- .as-choice{border-bottom:1px solid #CECECE;border-top:0px}
- .as-choice a{font-size:12px;}
- .check{padding-left:10px;}
- .input-sy{vertical-align:top}
- .man-bg{background:#3F3F3F;color:#fff;font-size:12px;}
- .man-bg a{color:#fff;font-size:12px;}
- .icon-index{width:21px}
- .bg-senav{background:#BEBEBE}
- .clr-leftPd{padding-left:0px;}
- .clr-rightPd{padding-right:0px}
- .infont-color{color:#464646}
- .tfont-cl{color:#9A9A9A}
- .bp{background:url(http://img01.taobaocdn.com/tps/i1/T16b1YXX8gXXXXXXXX-72-17.png) no-repeat;line-height: 15px;width:70px;}
- .zk{background:url(http://img04.taobaocdn.com/tps/i4/T14Y1YXX0gXXXXXXXX-72-17.png) no-repeat;}
- .bp a{font-size:12px;color:#fff}
- .show-ps a{color:#464646;padding:0px 5px 0px 5px;}
- .pic td{width:70px}
- .ftd{padding-right:50px;width:80px;}
- .pic a{font-size:12px}
- .tb-pd a{font-size:14px}
- .search_index a{font-size:12px}
- .clr-leftPd a{font-size:12px;}
- .wihte-border{border-bottom:1px solid #fff;border-top:1px solid #fff}
- /****wy****/
- .sl{background:#116EB4}
- .nav {
- padding: 3px 0 0 3px;
- background-color: #106EB4;
- }
- .nav span{padding:3px 5px 4px 5px;color:#fff;line-height:26px;}
- .focus{color:#000;background:#D0EFFE;line-height:30px}
- .lhth{line-height:30px}
- .w-btn{padding:4px 26px 4px 26px}
- .w-gray{color:#aaa}
- .no-bg{background:none}
- .al-navbt{padding:10px 0px 10px 0px}
- .al-navbt a{padding:10px 12px 7px 13px;background:url(http://img02.taobaocdn.com/tps/i2/T1KaTaXfVXXXaLpHPe-35-34.jpg) center no-repeat;color:#000;line-height:33px;}
- .al-navbt input{padding:5px 8px 5px 8px}
- .al-navbt .hotbtn{padding:10px 10px 7px 10px}
- .al-navbt .selected{color:#fff;background:url(http://img02.taobaocdn.com/tps/i2/T1Oh6aXi0hXXaLpHPe-35-34.jpg) no-repeat}
- .al-navbt .hotbtnY{padding:10px 6px 7px 11px;}
- .w-nav{line-height:25px;border-bottom:1px solid #116EB4}
- .w-nav a{padding-left:6px}
- .bd-under{border-bottom:1px solid #ccc;line-height:19px;}
- .w-cur{padding:6px;background:#116EB4}
- .w-mgt{margin-top:6px}
- .pre-nav{line-height:28px;}
- .pre-nav a{padding:7px;}
- .tn-align{font-size:14px}
- .bdtb{border-top:1px solid #ccc}
- .range{color:#ff7300}
- .showPri a{padding:4px}
- .no-margin{margin:0px}
- .hl-set{line-height:29px}
- /*常用联系人区块*/
- .cz-contact {
- margin-left: 10px;
- }
- .cz-contact td {
- padding-right: 15px;
- height: 26px;
- line-height: 26px;
- }
- .cz-contact-add {
- margin: 15px 0 0 10px;
- }
- /*充值记录列表区块*/
- .cz-record-list {
- width: 100%;
- padding: 0 10px;
- margin-top: -10px;
- }
- .cz-record-list td {
- padding: 10px 0;
- border-bottom: 1px solid #000;
- }
- .cz-record-page{
- margin: 10px 0 0 10px;
- line-height: 30px;
- }
- </style>
- </head>
- <body>
- <div class="hd">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tbody>
- <tr>
- <td valign="middle" width="27%"><a ><img src='http://a.tbcdn.cn/mw/s/mi/logos/logo_sub.gif' alt='淘宝网-手机版' /></a></td>
- <td align="right" valign="middle" width="72%"> Hi,<a name="anch-top">胡录发</a> <a ><img src="http://a.tbcdn.cn/mw/app/ww/mi/icons/online.png" alt="在线" width="18" height="18"/></a>
- <a ><img src="http://a.tbcdn.cn/mw/app/wood/mi/images/no-news.png" alt="无消息" /></a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <style type="text/css">
- .btn-blue{color:#fff;background:#408cff;}
- .tab-main{padding:3px 0;background:#FEEB99;}
- .tab-sub{padding:3px 0;background:#FFFFCC;}
- </style>
- <div class="bd">
- <p class="cz-crumbs">
- Q币><strong>选择面值</strong>>选择价格>输入账号
- </p>
- <div class="box">
- <form action="http://zc.m.taobao.com/game_face_value_choose.htm?sid=b52a933141454fae8ecc2c6182084790&sprefer=p23755" method="get">
- <input type="hidden" name="action" value="game_action"/>
- <input type="hidden" name="event_submit_do_search_prices" value="1"/>
- <input type="hidden" name="sid" value="b52a933141454fae8ecc2c6182084790"/>
- <input type="hidden" name="_input_charset" value="utf-8"/>
- <input type="hidden" name="catId" value="50005462"/>
- <input type="hidden" name="type" value="3"/>
- <input type="hidden" name="step" value="1"/>
- <input type="hidden" name="sprefer" value="p23755"/>
- <div class="detail">
- 面 值:<select name="faceValue">
- <option value="105375">1个</option>
- <option value="43502">5个</option>
- <option value="43503">10个</option>
- <option value="112555">15个</option>
- <option value="43504">20个</option>
- <option value="112556">30个</option>
- <option value="3227770">50个</option>
- <option value="43506">60个</option>
- <option value="7445084">100个</option>
- <option value="11672195">500个</option>
- <option value="11265571">1000个</option>
- </select>
- <input type="submit" value="下一步"/>
- </div>
- </form>
- </div>
- <hr/>
- <div class="box">
- <div class="detail no-bg showPri">
- <a class="to-mump">返回上一级</a></div>
- </div>
- </div>
- <div class="ft">
- <a href="#anch-top">回顶部</a>
- | <a name="anch-top">胡录发</a>
- <a >退出</a>
- <a >我的淘宝</a> | <a >客户端</a> | <a >搜索</a> | <a >首页</a>
- <span>© 2012</span> | <a >安全</a> | <a >客服</a>
- <span>ICP:浙B2-20080224</span>
- <!-- wtm053089.cm4 -->
- </div> </body>
- </html>
复制代码 |
最佳答案
查看完整内容
[%u4e00-%u9fa50-9]+
正则取数字和汉字
|