<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zariganitosh</author_name>
  <author_url>https://blog.hatena.ne.jp/zariganitosh/</author_url>
  <blog_title>ザリガニが見ていた...。</blog_title>
  <blog_url>https://zariganitosh.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
    <anon>validate</anon>
  </categories>
  <description>今のURLのチェックは下記の1行で行っているが、http:、https:、ftp:で始まっていれば、その後は、ほぼ、どんな文字が来てもOKで通ってしまう。今になってそれがちょっと気になってきたので、見直してみた。 validates_format_of :url, :with =&gt; URI.regexp(['http', 'https', 'ftp']) 生成される正規表現については意味を追いきれないので、何がOKで、何がNGなのかは確認していないが...。 そもそも、rubyのURIライブラリの存在を知った時には、こんな風にメソッド定義しておくと、簡単にHTTPの書式チェックが出来ると知った…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzariganitosh.hatenablog.jp%2Fentry%2F20061120%2F1163998759&quot; title=&quot;URL書式のチェックをもうちょっと考えてみる。 - ザリガニが見ていた...。&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>2006-11-20 13:59:19</published>
  <title>URL書式のチェックをもうちょっと考えてみる。</title>
  <type>rich</type>
  <url>https://zariganitosh.hatenablog.jp/entry/20061120/1163998759</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
