Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のようなコードを実行しようとしています。
template = " ... here html tags [sitename] ... here html tags " template = template.gsub(/\[sitename\]/,"http://google.com")
しかし、それは機能していません。私の間違いは何ですか?
どのように機能していないか説明できますか?
ruby 1.9.2 では、期待どおりのコマンドが得られます
puts template
与える
... here html tags http://google.com ... here html tags