<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mtoyoshi</author_name>
  <author_url>https://blog.hatena.ne.jp/mtoyoshi/</author_url>
  <blog_title>mtoyoshi開発メモ</blog_title>
  <blog_url>https://mtoyoshi.hateblo.jp/</blog_url>
  <categories>
    <anon>Javascript</anon>
    <anon>ruby</anon>
  </categories>
  <description>rubyの例から。 str = &quot;hello, world&quot; if str =~ /hello, (.+)/ puts $1 end これで、「world」が出力されます。 これと同じことをjavascriptでどうやるか、ずっと分からなかったんだけど、ひょんな事から知ることが出来ました。 var str = &quot;hello, world&quot;; if (str.match(/hello, (.+)/)) { alert(RegExp.$1); } RegExp.$1だったとは！ 今読んでいるこの本に載っていました。 もちろん、Web脆弱性に関する解説本なんだけど、javascriptのこういうテク…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmtoyoshi.hateblo.jp%2Fentry%2F20110523%2F1306078597&quot; title=&quot;パターンマッチングした部分の抽出 - mtoyoshi開発メモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://ecx.images-amazon.com/images/I/41lX6Fg5KpL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-05-23 00:36:37</published>
  <title>パターンマッチングした部分の抽出</title>
  <type>rich</type>
  <url>https://mtoyoshi.hateblo.jp/entry/20110523/1306078597</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
