From: Akinori MUSHA Date: 2001-12-17T02:06:06+09:00 Subject: [ruby-dev:15464] gsub weirdness: gsub(/.*$/, "foo")  なんか gsub がおかしいような気がするんですが、これはこういう ものでしたっけ?一行に行末が二つ? knu@archon[2]% ./ruby -e 'p "abc\ndef\n".gsub(/.*$/, "x")' "xx\nxx\n" knu@archon[2]% ./ruby -e 'p "abc\ndef\n".gsub(/.*$/m, "x")' "xx\n" -- / /__ __ Akinori.org / MUSHA.org / ) ) ) ) / FreeBSD.org / Ruby-lang.org Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp "Somewhere out of a memory.. of lighted streets on quiet nights.."