[CLOSED] regular express?

  1. #1

    [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
    <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&amp;affiliate=news&amp;cat=article&amp;type=logo300x250&amp;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 5:54 AM. Reason: [CLOSED]
  2. #2
    This is out of scope for the type of technical support we provide.

    You might want to try posting your question on StackOverflow (http://stackoverflow.com/).
    Geoffrey McGill
    Founder & CEO
  3. #3
    <div[^>]+><iframe[^>]+></iframe></div>
    for note
    Last edited by geoffrey.mcgill; Jan 17, 2014 at 3:52 AM. Reason: Please use [CODE] tags

Similar Threads

  1. [CLOSED] CPU Performance problems on Regular Expression
    By andreasperanza in forum 1.x Premium Help
    Replies: 6
    Last Post: Nov 30, 2012, 4:27 PM
  2. Replies: 2
    Last Post: Oct 01, 2010, 1:14 PM
  3. editable grid and custom validation with regular expression
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 0
    Last Post: Sep 24, 2009, 6:08 PM
  4. Update grid with Regular ADO.NET
    By sharif in forum 1.x Help
    Replies: 0
    Last Post: Jul 07, 2009, 9:19 AM
  5. Replies: 9
    Last Post: Apr 14, 2009, 5:00 AM

Posting Permissions