1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

yahoo pipes regular expressions

Discussion in 'Blogging' started by technica, Oct 9, 2011.

  1. technica

    technica Newbie

    Joined:
    Dec 21, 2008
    Messages:
    18
    Likes Received:
    0
    Hi,

    I am working hard to get solution for some reg expressions for yahoo pipes.

    1) reg expression to remove all the empty tags from the feed html. The tags can be anything like <div></div>,<span></span>,<div id=""someid></div>,<div class="someclass"></div> etc.

    2) reg expression to remove certain tag and all the content within it. e.g. <noscript>test test <a></a></noscript>, here I want to remove <noscript> tag and all the content from it.

    Please help frinds.
     
  2. technica

    technica Newbie

    Joined:
    Dec 21, 2008
    Messages:
    18
    Likes Received:
    0
    Bump....
     
  3. andee

    andee Regular Member

    Joined:
    Jul 24, 2010
    Messages:
    218
    Likes Received:
    83
    youd get better results to your question in the programming section....

    You should also tell people what language you're coding in. For arguments sake ill assume is .NET

    theres regular expressions everywhere that strip html tags, google it.

    but look into a function people have written called getstringinbetween , it finds a string in between two specified strings...

    for the no script one, couldnt you just do a regex replace like

    regex.replace(source,"<noscript>.*?</noscript>" ,"")

    dunno if that will work, thats just off the top of my head.