ä»æ¥ã¯å¤ã®æ£è¦è¡¨ç¾ç¥ãã«åå ãã¦ãã¾ãã®ã§ãèªåç¨ã«ã¡ã¢ãã¾ãã ustreamãããã¾ãï¼ (Irr|R)egular Expressions / @dankogaiãã ãããããã®ã§ã¯ãªãããããã ãå½è³ãããªãã³ã¼ãæ¸ãã æ£è¦è¡¨ç¾ã®ä½¿ãéãã«æ³¨æ $str eq 'XXX' or $str eq 'YYY' ã /^(XXX|YYY)$/ ã«æ¸ãç´ããããªã â ãããã ãããã¯ããã·ã¥ã使ã£ããã5.10 ã§ã¹ãã¼ãããã ~~ ã使ã£ããã ã¡ã¼ã«ã¢ãã¬ã¹ã®æ¤è¨¼ã®æ£è¦è¡¨ç¾ â é©å½ã«æ¸ãã¨ä¸å®å ¨ãå®å ¨ã«æ¸ãã¨ãããé·ã Regexp::Common â 便å©ãªæ£è¦è¡¨ç¾éãipv4ã¨ãã Regexp::Assemble â alternations (xxx|yyy|zzz) ãTRIEæé©åããã ãã ãã5.10 以éã¯èªåã§TRIEæé©åãã¦ããã ãããããé¨åã
{{#tags}}- {{label}}
{{/tags}}