<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mrgoofy33</author_name>
  <author_url>https://blog.hatena.ne.jp/mrgoofy33/</author_url>
  <blog_title>hogehoge foobar Blog Style Beta</blog_title>
  <blog_url>https://mrgoofy.hatenablog.com/</blog_url>
  <categories>
    <anon>javascript</anon>
  </categories>
  <description>JavaScriptのreplaceの第2引数には関数(function)を使用することが出来ます。 その簡単な使い方と簡単な説明です。※ずっと前にも一度書いたことがあったのですが、読み返したときに意味不明状態になるような内容だったので、情報を整理して改めて書いています。 以前のエントリ:JavaScriptのreplaceの関数オブジェクトを渡せることを知った 一般的なreplaceの使い方 一般的なreplaceの使い方は、 第1引数 : 置換え前の文字列(正規表現も可) 第2引数 : 置換え後の文字列(正規表現のグループは、$1,$2,…で指定) になります。 一般的なreplaceのサ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmrgoofy.hatenablog.com%2Fentry%2F20100915%2F1284567664&quot; title=&quot;JavaScriptのreplaceの引数としてfunctionを使用する - hogehoge foobar Blog Style Beta&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-09-15 01:21:04</published>
  <title>JavaScriptのreplaceの引数としてfunctionを使用する</title>
  <type>rich</type>
  <url>https://mrgoofy.hatenablog.com/entry/20100915/1284567664</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
