{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgan2-2.hatenadiary.org%2Fentry%2F20070628%2F1183012430\" title=\" /(?!)/ \u306f\u300c\u3069\u3093\u306a\u6587\u5b57\u5217\u306b\u3082\u30de\u30c3\u30c1\u3057\u306a\u3044\u300d\u30d1\u30bf\u30fc\u30f3 - gan2 \u306e Ruby \u52c9\u5f37\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Ruby"],"url":"https://gan2-2.hatenadiary.org/entry/20070628/1183012430","blog_title":"gan2 \u306e Ruby \u52c9\u5f37\u65e5\u8a18","provider_name":"Hatena Blog","author_name":"gan2","blog_url":"https://gan2-2.hatenadiary.org/","type":"rich","author_url":"https://blog.hatena.ne.jp/gan2/","title":" /(?!)/ \u306f\u300c\u3069\u3093\u306a\u6587\u5b57\u5217\u306b\u3082\u30de\u30c3\u30c1\u3057\u306a\u3044\u300d\u30d1\u30bf\u30fc\u30f3","width":"100%","provider_url":"https://hatena.blog","image_url":null,"version":"1.0","height":"190","published":"2007-06-28 15:33:50","description":"\u308b\u3073\u307e Regexp.union \u306f Ruby 1.8.1 \u3067\u8ffd\u52a0\u3055\u308c\u305f\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u5f15\u6570\u304c\u3059\u3079\u3066\u6587\u5b57\u5217\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u3068\u540c\u3058\u610f\u5473\u3067\u3059\u3002 def Regexp.union(*strings) return /(?!)/ if strings.empty? new(strings.map {|s| escape(s) }.join('|')) end \u4f8b\u3048\u3070 Regexp.union('aa', 'bb', 'cc') \u306f\u6587\u5b57\u5217 aa \u304b bb \u304b cc \u306b\u30de\u30c3\u30c1\u3059\u308b\u6b63\u898f\u8868\u73fe\u3092\u8fd4\u3057\u307e\u3059\u3002\u5f15\u6570\u304c\u30bc\u30ed\u500b\u306e\u3068\u304d\uff08strings.empty?\uff09\u306b\u306f\u3069\u3046\u3044\u3046\u6b63\u898f\u8868\u73fe\u304c\u8fd4\u3063\u3066\u304f\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002 Regexp.un\u2026"}