Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] modify strip html preserve urls

Expand Messages
  • Sheri
    ... Should preserve both opening and closing a tags, while otherwise removing tags. Tags are not being confined to single lines. To confine to single lines
    Message 1 of 15 , Nov 5, 2009
    • 0 Attachment
      --- In ntb-clips@yahoogroups.com, "Don - HtmlFixIt.com" <don@...> wrote:
      >
      > dang I was still working on the first puzzle!
      > does that cover either an a tag or an /a tag then Sheri?

      Should preserve both opening and closing "a" tags, while otherwise removing tags. Tags are not being confined to single lines. To confine to single lines the character class [^>]* would need to be [^>\r\n]*

      >
      > Sheri wrote:
      > >
      > > --- In ntb-clips@yahoogroups.com, "Sheri" <silvermoonwoman@> wrote:
      > >> --- In ntb-clips@yahoogroups.com, "Don - HtmlFixIt.com" <don@> wrote:
      > >>> Here is the rub, I want to keep hyperlinks and delete everything
      > >>> else in the html world. So can I simply look for something like:
      > >>> <not \a or \a href> and replace with nothing?
      > >>> My not regex is pretty (can't say sloppy because it doesn't exist).
      > >> Try:
      > >> ^!Replace "<(?(?=/?a)(*FAIL)|[^>]*>)" >> "" RAWS0
      > >
      > > also this:
      > >
      > > ^!Replace "<(?!/?+a)[^>]*>" >> "" RAWS0
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.