PHP In Action | Readable regular expressions It bothers me: I can dream up more ideas in one afternoon than I can write down in a week. PHPã§æ£è¦è¡¨ç¾ãèªã¿ãããããæ¹æ³ã é常ãPHPã§æ£è¦è¡¨ç¾ãè¨è¿°ããã¨ãã次ã®ããã«preg_matchã«ç´æ¥æ¸¡ãã¦ä½¿ãè¡ããã¨ãå¤ããã¨æãã¾ãã preg_match("/^[a-z]+$/", $str); æ£è¦è¡¨ç¾ã®å 容ãè¤éã«ãªãã«ã¤ããã³ã¼ããããåãããªããªããã¨ã¯ãããã¡ã§ããã ããã§ã次ã®ããã«ã³ã¼ããè¨è¿°ããã¨åä½ãã¨ã«ã³ã¡ã³ããä»ãããã¦èªã¿ããããªãã¾ãã $regex = '/(w+s+)'. // Word followed by spaces '{6}'. // Repeated six
{{#tags}}- {{label}}
{{/tags}}