{"provider_url":"https://hatena.blog","published":"2022-12-22 18:20:42","version":"1.0","author_url":"https://blog.hatena.ne.jp/sugyan/","image_url":null,"author_name":"sugyan","type":"rich","blog_title":"\u3059\u304e\u3083\u30fc\u3093\u30e1\u30e2","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.sugyan.com%2Fentry%2F2022%2F12%2F22%2F182042\" title=\"Ruby\u3067\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306b\u5bfe\u3059\u308brindex\u691c\u7d22\u306e\u6319\u52d5\u3067\u30cf\u30de\u3063\u305f\u306e\u3067\u8abf\u3079\u305f\u3053\u3068\u30e1\u30e2 - \u3059\u304e\u3083\u30fc\u3093\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Ruby\u3067\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306b\u5bfe\u3059\u308brindex\u691c\u7d22\u306e\u6319\u52d5\u3067\u30cf\u30de\u3063\u305f\u306e\u3067\u8abf\u3079\u305f\u3053\u3068\u30e1\u30e2","width":"100%","description":"\u81ea\u5206\u306e\u624b\u5143\u306e\u74b0\u5883\u3067\u3053\u3093\u306a\u3053\u3068\u304c\u8d77\u304d\u305f\u3002 $ ruby -v ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21] $ irb irb(main):001:0> \"\\x01\\x80\\x00\\x00\".index(\"\\x01\") => 0 irb(main):002:0> \"\\x01\\x80\\x00\\x00\".rindex(\"\\x01\") => 1 \\x01 \u306f 0 \u756a\u76ee\u306b\u3057\u304b\u306a\u3044\u306e\u3060\u304b\u3089\u3001 .index \u3067\u3082 .rindex \u3067\u3082 0 \u304c\u8fd4\u3063\u3066\u304f\u308b\u306f\u305a\u3067\u306f\u306a\u3044\u306e\uff1f\uff1f \u5148\u306b\u7d50\u8ad6 \u304d\u3063\u304b\u3051 String#rindex \u306e\u8b0e\u6319\u52d5\u2026","blog_url":"https://memo.sugyan.com/","url":"https://memo.sugyan.com/entry/2022/12/22/182042","categories":["Ruby"],"provider_name":"Hatena Blog"}