TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:18438] regex for stripping FONT tags?
- To: tclug-list@mn-linux.org
- Subject: Re: [TCLUG:18438] regex for stripping FONT tags?
- From: George Swan <g-swan@maroon.tc.umn.edu>
- Date: Thu, 01 Jun 2000 08:56:03 -0500
- In-Reply-To: <Pine.SOL.4.20.0005311746150.19082-100000@garnet.tc.umn.edu>
Jeffry Friedl discusses a similar issue within the first 50 pages of the
book which everyone is mentioning, "Mastering [regex]" The double quoted
string issue:
/"[^"]*"/
Don't just buy it; read it... the author has a unique sense of humor.
gs
At 05:51 PM 5/31/00 -0500, you wrote:
>Hi all,
>
>We're making the arduous conversion from structured markup to CSS here at
>work. To make my life a little easier, I'm trying to write a little one
>liner Perl script to remove the <font></font> tags from an HTML
>document. Unfortunately, my regex is a little too trigger happy and is
>removing everything between the font tags as well! No good! (I thought
>Perl used greedy regexs which got rid of this problem?)
>
>Anyway, here's what I'm trying to use:
>
>s/<\/*font.*>//i
>
>By my reading, this should substitue anything that starts with "<font" or
>"</font" and ends with ">" with nothing, insensitive of the case.
>
>Any clues as to where I've gone wrong?
>
>Thanks in advance,
>
>Luke
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tclug-list-unsubscribe@mn-linux.org
>For additional commands, e-mail: tclug-list-help@mn-linux.org
>
>
>
******************************************
George Swan
Collection Development Support Unit VOICE: (612) 624-5860
Room 170B, Wilson Library FAX: (612) 626-9353
University of Minnesota Libraries g-swan@tc.umn.edu
309 19th Avenue South cdm-web@tc.umn.edu
Minneapolis, MN 55455 colldev@tc.umn.edu
USA http://www.lib.umn.edu/cdm/