<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akira2kun</author_name>
  <author_url>https://blog.hatena.ne.jp/akira2kun/</author_url>
  <blog_title>技術とか戦略とか</blog_title>
  <blog_url>https://akira2kun.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>JavaScriptのmatchメソッドは戻り値に特徴があり、戻り値を利用して文字列抽出もできるようになっています。今回は、文字列抽出の方法を紹介していきます。 ---- matchメソッド（String.match）では、引数で与えた文字列が含まれるかどうかを返すメソッドです。引数で与える文字列には、正規表現を使用することも可能です。 引数で与えた文字列が含まれない場合には、以下のようにnullが返却されます。 【サンプルコード】・test.jsconst str = 'hoge1fuga2';const ret = str.match(/piyo/);console.log(&quot;■戻り値全体…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakira2kun.hatenablog.com%2Fentry%2F2021%2F02%2F03%2F000000&quot; title=&quot;JavaScript：matchメソッドで文字列抽出を行う - 技術とか戦略とか&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>2021-02-03 00:00:00</published>
  <title>JavaScript：matchメソッドで文字列抽出を行う</title>
  <type>rich</type>
  <url>https://akira2kun.hatenablog.com/entry/2021/02/03/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
