Yay it worked! Now I can automatically remove all ten of those pesky <br> tags in this file I've been working with... ;)
Dan


--
The dark language of memory allocation is not to be spoken here.

On Tue, 13 Jul 2004, Jason Holt wrote:

Actually, a (normal) greedy match would turn "<b><i>foo</i></b>" into "". Single-line-matching is the only reason why it doesn't snip everything from the first < to the last > in your whole file. Non-greedy matches aren't trivially implementable for the general case in a greedy regex, which is why they have to be added to the language (that is, they're not just syntactic sugar). But in your case, %s/<[^>]*>//g should do the trick.

____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to