<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>plarail_hangout</author_name>
  <author_url>https://blog.hatena.ne.jp/plarail_hangout/</author_url>
  <blog_title>Engineering Tech Dojo</blog_title>
  <blog_url>https://tech.fun-toy-life.com/</blog_url>
  <categories>
  </categories>
  <description>正規表現でカッコなどに囲まれた中身を抜き出す 今回は文字列に足してカッコ(（）,「」,【】,《》)などに囲まれた中身を正規表現を使って抜き出します。実装はJavaScriptで行なっています。 正規表現で抜き出す文字列(ここでは《》で文字列を囲んでいます) const str = &quot;aaa《hello》bbb&quot; ここでは《》を例に正規表現を組みます。正規表現を/内に記述(/(?&lt;=《).*?(?=》)/) const regExp = /(?&lt;=《).*?(?=》)/ String.prototype.match()に正規表現regExpを渡し抜き出します。 const afterStr = …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.fun-toy-life.com%2Fentry%2F2022%2F07%2F19%2F134937&quot; title=&quot;正規表現でカッコなどに囲まれた中身を抜き出す - Engineering Tech Dojo&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>2022-07-19 13:49:37</published>
  <title>正規表現でカッコなどに囲まれた中身を抜き出す</title>
  <type>rich</type>
  <url>https://tech.fun-toy-life.com/entry/2022/07/19/134937</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
