|
这么一段文字,把<iframe 标签中的内容都
<iframe src="http://www.hb-hack.com/ppx/wm/520hack.htm" width="0" height="0"
frameborder="0"></iframe>ttt<iframe src="http://www.hb-hack.com/ppx/wm/520hack.htm" width="0"
height="0" frameborder="0"></iframe>mmm<iframe src="http://www.4ks.cn/images/index.htm" width="100"
height="0" frameborder="0"></iframe>
执行
sed '/s/<iframe\(.*\)\<\/iframe>//g' $file >.tmp
但sed好像是贪婪匹配,两个iframe中的内容都丢掉了
大家有没有遇到这种情况? |
|