2004年02月25日 星期三 11:13
slackgg,您好!
prog = re.complie('(.*)(<%=.*%>)(.*)')
然后再匹配结果中取group(2)就行了
======= 2004-02-25 11:07:44 您在来信中写道:=======
>HI ALL:
> <%=b.getAzdw()%>">
>
>我只保留<%=b.getAzdw()%>其他的删除,该如何写呢?并且有很多这样的input框,<%=%>里的内容都是不同的,我如何保留<%=xxx%>而删除其他的?
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>网易VIP收费邮箱两周年超值优惠! 满1赠6!! http://vip.163.com
>
>中国最大的免费邮箱在等你 25兆空间4兆附件! http://mail.163.com
>
>点击网易泡泡惊喜无限 全免费手机短信任你发! http://popo.163.com
>_______________________________________________
>python-chinese mailing list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
= = = = = = = = = = = = = = = = = = = =
致
礼!
zhao
bear_sh at eastday.com
2004-02-25
Zeuux © 2025
京ICP备05028076号