<?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>
  </categories>
  <description>以前のエントリ：文字列で渡ってきた日付情報をフォーマットする 以前書いたjavascriptの正規表現の例ですが、別のやり方がわかったので追記します。 var s = '2008年3月2日 22時36分10秒'; var x = s.replace(/(\d{4})年(\d{1,2})月(\d{1,2})日\s+(\d{1,2})時(\d{1,2})分(\d{1,2})秒/, '$1/$2/$3 $4:$5:$6'); console.log(x); // 2008/3/2 22:36:10 これなら1発♪ ポイントは、マッチした箇所を$1や$2等で抜き出して使っているところ。抜き出したい箇所…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmtoyoshi.hateblo.jp%2Fentry%2F20080302%2F1204464774&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-03-02 22:32:54</published>
  <title>文字列で渡ってきた日付情報をフォーマットする(再)</title>
  <type>rich</type>
  <url>https://mtoyoshi.hateblo.jp/entry/20080302/1204464774</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
