:%s@</\=FONT.\{-}>@@g
which is
< a literal "<"
/\= an optional "/"
FONT the literal tag
.\{-} any character, as few as possible
> a literal ">"
You might put optional whitespace before the slash or FONT, making it
:%s@<\s*/\=\s*FONT.\{-}>@@g
and optionally allow case-insensitivity with the "\c" token:
:%s@\c<\s*/\=\s*FONT.\{-}>@@g
As a non-greedy alternative, you might also consider something
like the character-class "[^>]"
:%s@<\s*/\=\s*FONT[^>]*>@@g
Hope this gives you what you need as well as some ways to riff on
the theme.
-tim
Adding to what Tim said, the following should just leave the
text between the FONT tags:
:%s@</\=FONT.\{-}>\(.\{-}\)</FONT>@\1@g
John
Hi Kurt, you can do that using the surround plugin, and entering dst
over the line to Delete the Surrounding html Tag.
Yes, vim allows a pretty broad range of characters to be used as
the separator as detailed at
:help E146
(not a very intuitive help-target, but it's the most direct link
to the apropos section). I usually fall back to "@", "!" or "#"
depending on what is (or more importantly, what *isn't*) in my
regex/replacement. Shebang lines in shell-scripts eat most of my
popular choices, being of the form "#!/path/to/executable"
-tim
Forgive my ignorance, but where would one download the 'dst' plugin?