2009-01-12è¿½è¨ ã¿ã¤ãã«ä¿®æ£ãã¾ããã 2009-01-14è¿½è¨ String.indexOf 㨠RegExp.test ã®ã¹ã³ã¢ãéã«æ¸ããã¦ã¦ããã®ãä¿®æ£ãã¾ããã String.match ã°ããã§ãRegExp.exec ã使ã£ããã¨ãããã¾ããã§ããã ã¡ãã£ã¨æ°ã«ãªã£ãã®ã§è²ã ã¨ãã³ããã¼ã¯ãåã£ã¦ã¿ã¾ããã TEST TIMES IE6 Fx3.0 Fx3.1 (JIT) Safari3 Chrome1 (JIT) A. match(/\s*/) vs match(/ */) "aaaaaaaaaaaa".match(/\s*aa\s*/) 1000000 7203 1714 327 2375 2128 "aaaaaaaaaaaa".match(/ *aa */) 1000000 7156 1638 297 2328 2148 B. RegExp.exec vs
{{#tags}}- {{label}}
{{/tags}}