切换风格

Wizard Sky California Sunset glow Black Cloud Beige Dragon Lavender NewYear City Snow Flowers London
收藏本站XSS平台字符串转换jsfuck
求正则匹配。[复制链接]
发表于 2014-9-11 16:17:18 | 显示全部楼层 |!read_mode!
本帖最后由 Goodwinner 于 2014-9-11 16:21 编辑

<!doctype html>
<html>
<head>
<meta charset="utf-8">


<!-- 移动设备支持 -->
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta content="telephone=no, address=no" name="format-detection">
<meta name="apple-mobile-web-app-capable" content="yes"> 
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link href="/www/css/mod/reset.css" rel="stylesheet" type="text/css">
<link href="/www/css/mod/mobile/mod12.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="wrap" class="clr" >
  <div class="telnav clr">
               <a href="/mobileenroll/index?uid=12674&openid=FANS_ID&id=391#mp.weixin.qq.com">
                <div class="telbtn">
            <div class="pic">
              <img src="/www/images/mod/mod10/arrow.png">
            </div>
              吧
    </div>
    </a>
              <a href="mobileenroll/index?uid=12674&openid=FANS_ID&id=391#mp.weixin.qq.com">
                <div class="telbtn">
            <div class="pic">
              <img src="/www/images/mod/mod10/arrow.png">
            </div>
              吧
    </div>
    </a>
              <a href="mobileenroll/index?uid=12674&openid=FANS_ID&id=391#mp.weixin.qq.com">
                <div class="telbtn">
            <div class="pic">
              <img src="/www/images/mod/mod10/arrow.png">
            </div>
              吧
    </div>
    </a>
              <a href="mobileenroll/index?uid=12674&openid=FANS_ID&id=391#mp.weixin.qq.com">
                <div class="telbtn">
            <div class="pic">
              <img src="/www/images/mod/mod10/arrow.png">
            </div>
              吧
    </div>
    </a>
              <a href="/mobileenroll/index?uid=12674&openid=FANS_ID&id=391#mp.weixin.qq.com">
                <div class="telbtn">
            <div class="pic">
              <img src="/www/images/mod/mod10/arrow.png">
            </div>
              吧
    </div>
    </a>
  
  </div>
 <a href="tel:110">
<div class="telphone"><img src="/www/images/tel.png"></div>
</a>
<script type="text/javascript" src="/www/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/www/js/wxsharejs.js"></script>
<script type="text/javascript">

        var tongjitype = $.trim();
        var uid = $.trim(12674);
        function tongji(id,type){
                $.ajax({
                        url:"/phone/tongji",
                        type:"post",
                        async:false,
                        data:{'id':id,'type':type,'tongjitype':tongjitype,'uid':uid}                
                })
        }
        var fx_describefenxiang = "";
        wx_share_out('ss','',fx_describefenxiang);
</script>
<a href="/phone/websiteofficial?uid=12674">
        <footer>
                xxxxxxx        </footer>
</a>
把这一段去掉。。。
<div class="blankwhite" style="height:30px;"></div>
<script type="text/javascript">
        </script></div>
</body>
</html>


求把footer 整个去掉。A连接也去掉
求代码!!!!


发表于 2014-9-11 16:22:22 | 显示全部楼层
<?php
$str = '<a href="/phone/websiteofficial?uid=12674">
	<footer>
		XXXX	</footer>
</a>
';

preg_match_all('/<a\s+href=".*">(.*)<\/a>/is',$str,$dela);
echo $dela[1][0];
?>


操千曲而后晓声,观千剑而后识器。
发表于 2014-9-11 17:08:41 | 显示全部楼层
店小二01 发表于 2014-9-11 16:22

我要的是JS的。。。。大牛!!!

代码区

GMT+8, 2019-9-23 21:39

Powered by Discuz! X2

© 2001-2018 Comsenz Inc.

回顶部