2011å¹´07æ09æ¥15:00 ã«ãã´ãªLightweight LanguagesTips RegExp - /dan|dankogai/ != /dankogai|dan/ 詳説 æ£è¦è¡¨ç¾ 第3ç Jeffrey Friedl æ ªå¼ä¼ç¤¾ãã³ã°ãã¼ã« / é·å°¾é«å¼è¨³ [åè:Mastering Regular Expressions (3rd Ed.)] å¤ã®æ£è¦è¡¨ç¾ç¥ãã§ä¸ã¤å¤§äºãªãã¨ãè¨ãå¿ãã¦ããã®ã¯çæã®ããã«ãã¦ãããã ããã¯ãã¿ã¤ãã«ã©ããã/dan|dankogai/ã¨/dankogai|dan/ãéãã¨ãããã¨ã Perl 5.12 use 5.012; say ( "dankogai" =~ /(dan|dankogai)/ ); say ( "dankogai" =~ /(dankogai|dan)/ ); JavaScript (SpiderMonkey 1.7
{{#tags}}- {{label}}
{{/tags}}