<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP開発</anon>
    <anon>正規表現</anon>
  </categories>
  <description>Webで入力された情報のチェックを行うための正規表現のまとめです。 ちなみに、こちらのサイトでオンラインで正規表現のチェックができます。 簡単に評価できるので非常に助かってます。 カタカナ(全角)入力 preg_match( '/[ァ-ヶ]+/',$text ) このァかヶの範囲は文字コード表を見るとわかります。 ※追記 この方法だとうまくいきませんでした。 ということで、mb_eregを使って、こういう方法で。 mb_regex_encoding(&quot;UTF-8&quot;); mb_ereg( &quot;^[ァ-ヶ]+$&quot; , $message ); 参考：全角カタカナにマッチする正規表現 ※さらに追記(20…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2008%2F10%2F28%2F104000&quot; title=&quot;(PHP)入力チェックを行うためのいろいろな正規表現 - 3流プログラマのメモ書き&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>2008-10-28 10:40:00</published>
  <title>(PHP)入力チェックを行うためのいろいろな正規表現</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2008/10/28/104000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
