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? perl5 -e '$_="abc"; s/(?<=...)/x/; print' perl5 -e '$_="abc"; s/(?!.)/x/; print' 's/<!before .>/foo/' -- Grtz, Ruud