How do I compose a non-greedy regular expression to find "<FONT
SIZE=3>"? I've tried
:%s/<FONT\(.*\)\{-1}>//g
But the eliminates the entire line.
thanks.
> <FONT SIZE=3>some text goes here</FONT>
>
If the opening & closing anchors are guaranteed to be on the
same line, the RE below will do it.
s%<FONT SIZE=3>\(.*\)</FONT>%\1%
Why are you posting here and in the vim_use mailinglist?
regards,
Christian
Think about it in words. You want <FONT followed by any number of things
that aren't >, followed by >.
:%s/<FONT[^>]*>//
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.