[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 4: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
  3. #3
    <div[^>]+><iframe[^>]+></iframe></div>
    for note
    Last edited by geoffrey.mcgill; Jan 17, 2014 at 2:52 AM. Reason: Please use [CODE] tags

Similar Threads

  1. [CLOSED] CPU Performance problems on Regular Expression
    By andreasperanza in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Nov 30, 2012, 3:27 PM
  2. [CLOSED] There are examples of textbox with regular expressions?
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 01, 2010, 12: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, 5:08 PM
  4. Update grid with Regular ADO.NET
    By sharif in forum 1.x Help
    Replies: 0
    Last Post: Jul 07, 2009, 8:19 AM
  5. Replies: 9
    Last Post: Apr 14, 2009, 4:00 AM

Posting Permissions