<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yklitter</author_name>
  <author_url>https://blog.hatena.ne.jp/yklitter/</author_url>
  <blog_title>&lt;y&gt;</blog_title>
  <blog_url>https://yklitter.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>今日ちょっと正規表現の沼に足を取られてしまったのでそれを書いていきたい。 やろうとしたこと Ruby on Railsでアプリケーションを作っていて、「お知らせ」(notification)というモデルを新規に登録する際に起きた話。 「お知らせ」にはタイトルや登録日といったプロパティがあるのだが、今回問題になったのはURLというプロパティ。URLにはwebページのリンクが入るのだが、このURLリンクをユーザーが入力する際のバリデーションをどうするかという話になった。 「rails url バリデーション」といった言葉でググると色々出てくるのだが、結論として「こちらがどんなに精密にURLのバリデ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyklitter.hatenablog.com%2Fentry%2F2016%2F08%2F18%2F004336&quot; title=&quot;日報 2016/08/16 - &amp;lt;y&amp;gt;&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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yklitter/20160818/20160818000454.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-08-18 00:43:36</published>
  <title>日報 2016/08/16</title>
  <type>rich</type>
  <url>https://yklitter.hatenablog.com/entry/2016/08/18/004336</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
