UTF-8 if(preg_match("/^[ã-ã]+$/u",$str)){ echo "ã²ãããªã®ã¿ã§ã"; }else{ echo "ã²ãããªã®ã¿ã§ã¯ããã¾ãã"; } UTF-8 ã³ã¼ãè¡¨è¨ if(preg_match("/^(Â¥xe3Â¥x81[Â¥x81-Â¥xbf]|Â¥xe3Â¥x82[Â¥x80-Â¥x9e])+$/",$str)){ echo "ã²ãããªã®ã¿ã§ã"; }else{ echo "ã²ãããªã®ã¿ã§ã¯ããã¾ãã"; } UTFã§ã¯ã修飾åã u ããã¤ããªãã¨ãããããèªèã§ããªããã¨ãããã¾ãã (修飾åã i ããªã©ããããã¦ã¤ããã¨ã) ãã以å¤ã«ãããããããããããã¾ãã (å°æåã®ãããããããç°å¢ã«ãã£ã¦ã¯è¡¨ç¤ºã§ãã¾ããã) EUC-JP if(preg_match("/^[ã-ãããã]+$/",$str)){ echo "ã²ãããªã®ã¿ã§ã"; }else
{{#tags}}- {{label}}
{{/tags}}