<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ke_takahashi</author_name>
  <author_url>https://blog.hatena.ne.jp/ke_takahashi/</author_url>
  <blog_title>memorandums</blog_title>
  <blog_url>https://memorandums.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>長いタイトルですが、そのまんまの意味です。これについて書かれているエントリーはたくさんありますが、自分が忘れないために書きます。あるプログラムを作っています。Javaで書かれたソースコード中の文字列をStringクラスのreplaceAllメソッドで変換しようしたところエラーが。replaceメソッドの第一引数は正規表現で記述します（というかできます）。そのため単なる文字列ではなくメタ文字で指定できて便利なのですが、メタ文字が含まれた文字、例えばコメントである「/**」を第一引数に指定するとPatternSyntaxExceptionがでます。あれこれ調べるとPatternクラスのクラスメソッ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemorandums.hatenablog.com%2Fentry%2F2014%2F12%2F05%2F204635&quot; title=&quot;文字列中に正規表現のメタ文字が含まれていた場合のreplaceメソッド - memorandums&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>2014-12-05 20:46:35</published>
  <title>文字列中に正規表現のメタ文字が含まれていた場合のreplaceメソッド</title>
  <type>rich</type>
  <url>https://memorandums.hatenablog.com/entry/2014/12/05/204635</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
