From: Kristof Bastiaensen Date: 2004-05-14T22:28:54+09:00 Subject: Re: Regexp Error? On Fri, 14 May 2004 07:16:57 -0600, Ara.T.Howard wrote: >> >> echo "123-456" | sed 's/.*/X/g' >> X >> >> Kristof > > yes but > > ~ > echo "123-456" | perl -npe 's/.*$/X/g' > XX gawk also returns X: $ echo "123-456" | gawk '{ gsub(/.*/, "X"); print }' X > > and sed regexps are not the same as perl/ruby right? > > -a No, but I would expect the basic ones to behave the same way. (sed and gawk have been there before perl/ruby/javascript). Is that not a expectation that can be trusted?