On Mon, Nov 21, 2005 at 11:19:48PM +0100, Ruud H.G. van Tol wrote: > Patrick R. Michaud: > > >> 's/$/foo/' becomes 's/<after .*>/foo/' > >> <g> > > > > Uh, no, because <after> is still a zero width assertion. :-) > > That's why I chose it. It is not at the end-of-string?
Because ".*" matches "", /<after .*>/ would be true at every position in the string, including the beginning, and this is where "foo" would be substituted. Pm