rubyã®ä¾ããã str = "hello, world" if str =~ /hello, (.+)/ puts $1 end ããã§ããworldããåºåããã¾ãã ããã¨åããã¨ãjavascriptã§ã©ããããããã£ã¨åãããªãã£ããã ãã©ãã²ãããªäºããç¥ããã¨ãåºæ¥ã¾ããã var str = "hello, world"; if (str.match(/hello, (.+)/)) { alert(RegExp.$1); } RegExp.$1ã ã£ãã¨ã¯ï¼ ä»èªãã§ãããã®æ¬ã«è¼ã£ã¦ãã¾ããã ãã¡ãããWebèå¼±æ§ã«é¢ãã解説æ¬ãªãã ãã©ãjavascriptã®ãããããã¯ã¨ããããã£ã¨è¼ã£ã¦ããããã¦1ç²ã§2度ç¾å³ããä»æãã«ãªã£ã¦ãã¾ãããã®å ãããããã®ãæ£ãã°ã£ã¦ãããã¨æãã¨æ¥½ãã¿ã§ã⪠ä½ç³»çã«å¦ã¶ å®å ¨ãªWebã¢ããªã±ã¼ã·ã§ã³ã®ä½ãæ¹ãèå¼±æ§ãçã¾ããåç
{{#tags}}- {{label}}
{{/tags}}