<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kuronekopunk</author_name>
  <author_url>https://blog.hatena.ne.jp/kuronekopunk/</author_url>
  <blog_title>ノンカフェインであなたにやさしい</blog_title>
  <blog_url>https://akinobu.net/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>Railsのアプリを作っていて電話番号のバリデーションをするための正規表現はどう書いたらいいのか悩んだので調べてみました ※細かくやっていますが新しい電話番号や考慮されないパターンがあるかもなのでバリデーションは緩くしておくことをおすすめします。 電話番号の正規表現 日本の一般の電話番号の正規表現はこうなりそう /\A(((0(\d{1}[-(]?\d{4}|\d{2}[-(]?\d{3}|\d{3}[-(]?\d{2}|\d{4}[-(]?\d{1}|[5789]0[-(]?\d{4})[-)]?)|\d{1,4}\-?)\d{4}|0120[-(]?\d{3}[-)]?\d{3})\z/ …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakinobu.net%2Fentry%2F2017%2F05%2F31%2F194421&quot; title=&quot;電話番号の正規表現はどうしたらいいのか - ノンカフェインであなたにやさしい&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/k/kuronekopunk/20170531/20170531181426.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-31 19:44:21</published>
  <title>電話番号の正規表現はどうしたらいいのか</title>
  <type>rich</type>
  <url>https://akinobu.net/entry/2017/05/31/194421</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
