ã¡ã¼ã«ã¢ãã¬ã¹ã®å½¢å¼ãããªãã¼ã·ã§ã³ããæ¹æ³ PHPã§ã¡ã¼ã«ã¢ãã¬ã¹ãããªãã¼ã·ã§ã³ããæ¹æ³ã¯ã以ä¸ã®ï¼ã¤ã§ãã æ£è¦è¡¨ç¾ã使ã£ã¦ãã§ãã¯ããæ¹æ³ filter_varé¢æ°ã使ã£ã¦ãã§ãã¯ããæ¹æ³ å®éã«æ¸ãã¦ã¿ãã æ£è¦è¡¨ç¾ã使ã£ã¦ã¡ã¼ã«ã¢ãã¬ã¹ãããªãã¼ã·ã§ã³ããæ¹æ³ ã¾ãã¯ãæ£è¦è¡¨ç¾ã使ã£ãããªãã¼ã·ã§ã³ã®æ¹æ³ã«ã¤ãã¦è¦ã¦ããã¾ãããã <?php // ããªãã¼ã·ã§ã³ã«ä½¿ãã¡ã¼ã«ã¢ãã¬ã¹ $email = 'hogehoge@email.com'; // ããªãã¼ã·ã§ã³ã«ä½¿ãæ£è¦è¡¨ç¾ $pattern = "/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/"; if ( preg_match($pattern, $email ) ) { echo "æ£ããå½¢å¼ã®ã¡ã¼ã«ã¢ãã¬ã¹ã§ãã"; } e
{{#tags}}- {{label}}
{{/tags}}