Re: [Clip] modify strip html preserve urls
- --- In email@example.com, "Don - HtmlFixIt.com" <don@...> wrote:
>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]*
> dang I was still working on the first puzzle!
> does that cover either an a tag or an /a tag then Sheri?
> Sheri wrote:
> > --- In firstname.lastname@example.org, "Sheri" <silvermoonwoman@> wrote:
> >> --- In email@example.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