<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bogy1984</author_name>
  <author_url>https://blog.hatena.ne.jp/bogy1984/</author_url>
  <blog_title>Bology</blog_title>
  <blog_url>https://bogy1984.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>正規表現</anon>
  </categories>
  <description>正規表現を書くときスラッシュで始まりスラッシュで閉じるのが一般的ですが、 実はスラッシュでなくても動いたりします。記号であれば大概は動きます。 （括弧は開き括弧で始まり、閉じ括弧で閉じる） &lt;?php //一般的なパターン preg_match('/.*/i', $text); // 動作する preg_match('{.*}i', $text); preg_match('[.*]i', $text); preg_match('|.*|i', $text); preg_match('!.*!i', $text); preg_match('%.*%i', $text); //動作しない preg…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbogy1984.hatenadiary.org%2Fentry%2F20090617%2F1245189725&quot; title=&quot;正規表現のスラッシュは別の文字でも動く - Bology&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>2009-06-17 07:02:05</published>
  <title>正規表現のスラッシュは別の文字でも動く</title>
  <type>rich</type>
  <url>https://bogy1984.hatenadiary.org/entry/20090617/1245189725</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
