Perl正则表达式之e修饰符实例

@Ta 2013-07-27 3186点击
<?php
$s='<a href="http://soso.com">首页</a><br/><a href="http://novel.wap.soso.com/lists.jsp?sid=txgngmpm&amp;key=mgmpwtm">老虎外传-小老虎学游泳</a>…………';//我将写个小偷,偷取搜搜小说,所有链接替换成我的链接
$ps=preg_replace('#"([^"] )"#Use',"'\"/read.php?SwimmingTigerIsLovely='.base64_encode(str_replace('&amp;','&','$1')).'&amp;Aite=yes\"',$s);
echo $ps;//写小偷可以这样偷懒,不用分析哪个请求无关紧要
回复列表(4|隐藏机器人聊天)
添加新回复
回复需要登录