ãã¿ã¼ã³ã®æ«å°¾ã«ã|ããä»ãå ããã¨ããã®æ£è¦è¡¨ç¾ã¯å¸¸ã«ãããããã /aaa/.exec("xyz"); // => null /aaa|/.exec("xyz"); // => [""] ããã使ãã°ãããä½ç½®ã§ã®ã¿ãã¿ã¼ã³ããããè¡ãã¨ãããã¨ï¼Perl ã®æ£è¦è¡¨ç¾ã§ã\Gãã®ã¡ã¿æåã使ããããªãã¨ï¼ã JavaScript ã§ãã§ããï¼Firefox ã«éã£ã¦ã¯ãyããã©ã°ã使ãã°ç°¡åã«ã§ãããã©ãç¬èªæ¡å¼µä»ã®ã¨ããä»ã®ãã©ã¦ã¶ã§ã¯ä½¿ããªãï¼ã // RegExp::exec ã®æ»ãå¤ã®é åã«ã¯ index ããããã£ãããã // ãããã«æåããä½ç½®ã表ã var text = "xxxaaxxxaaa", regexp, result; // 4ã6æåç®ã aaa ãã©ããã ã確ããããã¨ãã // é常ã®æ£è¦è¡¨ç¾ regexp = /aaa/g; regexp.last
{{#tags}}- {{label}}
{{/tags}}