{"type":"rich","categories":["ruby","Linux"],"title":"\u6b63\u898f\u8868\u73feTips18\u9078","description":"\u6b63\u898f\u8868\u73fe\u306eTips\u3067\u3088\u304f\u4f7f\u3046\u8a18\u6cd5\u7b49\u3092Tips\u3068\u3057\u3066\u6b8b\u3057\u307e\u3059\u3002 \u5ba3\u8a00\u65b9\u6cd5 // //\u3067\u56f2\u3080\u3053\u3068\u306b\u3088\u308a\u6b63\u898f\u8868\u73fe\u3092\u8868\u305b\u307e\u3059 %r{} %r{}\u306e\u62ec\u5f27\u5185\u306b\u66f8\u304f\u3053\u3068\u3067\u6b63\u898f\u8868\u73fe\u3092\u8868\u305b\u307e\u3059 Regexp.new() Regexp.new\u306e\u5f15\u6570\u3068\u3057\u3066\u66f8\u304f\u3053\u3068\u3067\u6b63\u898f\u8868\u73fe\u3092\u8868\u305b\u307e\u3059 \u6b63\u898f\u8868\u73fe\u6587\u6cd5 \u6587\u982d\u6307\u5b9a(^) ^\u3092\u3064\u3051\u308b\u3068\u6587\u982d\u3092\u8868\u3059\u610f\u5473\u306b\u306a\u308a\u307e\u3059 \u6587\u4e2d\u306b\u6307\u5b9a\u3057\u305f\u6587\u5b57\u304c\u3042\u3063\u3066\u3082\u30de\u30c3\u30c1\u3057\u307e\u305b\u3093\u3002 def test(str, reg) if str =~ reg puts 'match!!' else puts 'unmatch...' end end puts test('foobar', Regexp.new(/\u2026","published":"2015-08-10 12:36:44","blog_title":"\u8133\u6c41portal","url":"https://portaltan.hatenablog.com/entry/2015/08/10/123644","height":"190","author_name":"portaltan","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fportaltan.hatenablog.com%2Fentry%2F2015%2F08%2F10%2F123644\" title=\"\u6b63\u898f\u8868\u73feTips18\u9078 - \u8133\u6c41portal\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"provider_name":"Hatena Blog","version":"1.0","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/portaltan/","width":"100%","blog_url":"https://portaltan.hatenablog.com/"}