{"height":"190","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubytips86.hatenablog.com%2Fentry%2F2014%2F04%2F02%2F182344\" title=\"\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b - Ruby Tips!\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://rubytips86.hatenablog.com/","description":"\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u306b\u306fString#sub\u307e\u305f\u306fString#gsub\u3092\u4f7f\u3046\u3002String#sub\u306f\u30de\u30c3\u30c1\u3057\u305f\u6700\u521d\u306e1\u3064\u3060\u3051\u3092\u3001String#gsub\u306f\u30de\u30c3\u30c1\u3057\u305f\u3059\u3079\u3066\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3057\u305f\u65b0\u3057\u3044\u6587\u5b57\u5217\u3092\u8fd4\u3059\u3002\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306f\u7b2c1\u5f15\u6570\u306b\u7f6e\u63db\u5bfe\u8c61\u306e\u6587\u5b57\u5217\u304b\u6b63\u898f\u8868\u73fe\u3092\u6307\u5b9a\u3057\u3001\u7b2c2\u5f15\u6570\u306b\u7f6e\u63db\u5f8c\u306e\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u3060\u3002 p \"foo bar buz\".sub('b', 'p') #=> \"foo par buz\" p \"foo bar buz\".gsub(/b/, 'p') #=> \"foo par puz\" \u7b2c2\u5f15\u6570\u3092\u6307\u5b9a\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001\u30d6\u30ed\u30c3\u30af\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002\u3053\u306e\u5834\u5408\u306f\u30d6\u30ed\u30c3\u30af\u2026","version":"1.0","provider_url":"https://hatena.blog","categories":[],"title":"\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b","width":"100%","author_name":"rubytips86","published":"2014-04-02 18:23:44","image_url":null,"url":"https://rubytips86.hatenablog.com/entry/2014/04/02/182344","blog_title":"Ruby Tips!","type":"rich","author_url":"https://blog.hatena.ne.jp/rubytips86/"}