Jan 16, 2014, 1:32 PM
[CLOSED] regular express?
i want to remove html ad in source code, may be it is easy for you , but it is hard for me , thank you.
the source code is
the source code is
<div class=''>xxx</div>xxxxxxx<div class="gg200x300" style="padding: 19px; margin: 0px 22px 0px 0px; overflow: hidden; text-align: center; font-size: 0px; line-height: 0; float: left; border: 1px solid rgb(229, 229, 229); color: rgb(37, 37, 37); font-family: 宋体, sans-serif;"><iframe src="http://g.163.com/r site=netease&affiliate=news&cat=article&type=logo300x250&location=13" width="300" height="250" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></div>yyyyyy
i want it to return <div class=''>xxx</div>xxxxxxxyyyyyy
i try to use the regular express<div.*<iframe.*</iframe></div>
but only return yyyyyy
i know it is eager mode , it matches the more as they can. but how to make it to lazy mode, let it matches the less as they can?
Last edited by Daniil; Jan 17, 2014 at 4:54 AM.
Reason: [CLOSED]