<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takahashikzn</author_name>
  <author_url>https://blog.hatena.ne.jp/takahashikzn/</author_url>
  <blog_title>R42日記</blog_title>
  <blog_url>https://takahashikzn.root42.jp/</blog_url>
  <categories>
    <anon>Regex</anon>
  </categories>
  <description>固定電話番号のバリデーションをしたい時。 「正規表現さん、お呼びですよー」となるわけです。 しかし、とっさに思いつく正規表現が String phoneNumberRegex = &quot;\\d{2,4}-\\d{2,4}-\\d{4}&quot;; だったりして、自分の安直さを悲しく思ったりするわけです。 で、「じゃ、キチンと書くとどうなるんだよ？ああ？」という話になるわけですが、 世の中にはすごい人がいるものです。 二度目の公開！電話番号の正規表現 総務省のホームページから正確なデータを引っ張ってきて自動生成している模様です。 まるでメールアドレスの正規表現を見た時のようなインパクト。 結局、僕はこちらの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakahashikzn.root42.jp%2Fentry%2F20090911%2F1252647984&quot; title=&quot; 固定電話番号の正規表現 - R42日記&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-09-11 14:46:24</published>
  <title> 固定電話番号の正規表現</title>
  <type>rich</type>
  <url>https://takahashikzn.root42.jp/entry/20090911/1252647984</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
