Could Use Regular Expression Help

Discussion in 'C#' started by nyxano, May 9, 2009.

  1. #1
    Hello,

    I have Googled this for a couple of hours now and can not find the proper solution.

    I wish to use RegEx to remove everything between <object AND </object> including the tags themselves, but leave the rest of the data in tact. The reason <object is not closed with a > is because several elements can appear as part of that tag, and not always in the same order (things like width, height, type, etc).

    If anyone could help, it would be greatly appreciated.
     
    nyxano, May 9, 2009 IP
  2. nyxano

    nyxano Peon

    Messages:
    417
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I should also add that the part I want to remove can span across several lines - and all of it would need to be removed - if it occurs between <object AND </object>
     
    nyxano, May 9, 2009 IP