in reply to making html smaller

It seems like you want something more general,
e.g.
s/, /,/g; s/ +/ /g; (one or more spaces --> one space)
etc.



(corrected after comment below)

Replies are listed 'Best First'.
RE: Re: making html smaller
by nardo (Friar) on Jul 26, 2000 at 01:55 UTC
    s/  / /g;
    Would be better written as
    s/ +/ /g; (or, to treat all whitespace the same: s/\s+/ /g;)
    since eight spaces would be converted to four using the first example, but the second would convert it to one space. The OP also isn't likely to want to s/, /,/g; since that would change text regardless of whether it's in an html tag or outside.