Information Flow and Stock: [PHP] mb_ereg()ãããªããpreg_match_all()ã«/uãã¤ãããã ï¼ ãªã®ã§ãã§ããéãpregç³»ã®é¢æ°ã使ãããããã§ãããæ¤ç´¢å¯¾è±¡ãæ¤ç´¢ãã¿ã¼ã³ã«æ¥æ¬èªãå«ã¾ãã¦ããã¨ãã¯ãæ¥æ¬èªå¦çã«å¯¾å¿ããeregç³»ã®é¢æ°ã§ããmb_eregç³»ã®é¢æ°ã使ããããã¨ãå¤ãããã§ãã 以åãããã¹ã¦ã®æ¼¢åãåãåºãæ£è¦è¡¨ç¾ããPHPã§è©¦ãããæ£ããè¡ãæ¹æ³ã 以åã¯mb_eregã«ããæ¹æ³ã示ãã¾ãããã次ã®æ¹æ³ã®æ¹ããã¾ãåä½ããããã§ãã preg_match_all('/[ä¸-é¾ ]+|[ã-ã]+|[ã¡-ã´ã¼]+|[a-zA-Z0-9]+|[ï½-ï½ï¼¡-Zï¼-ï¼]+/u', $strToSplit, $aMatches); print_r($aMatches); // ãããçµæãå ¨åºå 確ãã«ããªããåããªãæ¼¢åãã
{{#tags}}- {{label}}
{{/tags}}