ref: é¬¼è» æ£è¦è¡¨ç¾ Version 5.9.1 ref: Ruby Freaks Lounge: 第6å Ruby M17N äºå§ã:æ£è¦è¡¨ç¾ç·¨ \g 㨠\k ã«ã¤ãã¦ä»ã¾ã§ã¡ããã¨ããã£ã¦ãªãã£ãããã©ãå°ãããã£ããããªæ°ã«ãªã£ãã®ã§ã¡ã¢ãRuby ã¨ãããã鬼è»ã®è©±ãªã®ã§ãPHP ã§ã使ãããããããªãã試ãã¦ãªããã©ã ç°ä¸å²ã¹ãã·ã£ã« \g ã®åºæ¬ \g ã§åç §ãããæ¬å¼§ã®ä¸èº«ãããã«ãã®ã¾ã¾æ¸ãããã¨æãã°ããã re = /\A(?<foo>abc...def)\g<foo>\z/ # \g<foo> ãå±éãã¦èãã # /\A(?<foo>abc...def)abc...def\z/ ã¨åãæå³ p "abc123defabc123def".match(re) # ããã p "abc123defabc456def".match(re) # ããã p "abc1
å æ¥ããæ£è¦è¡¨ç¾ãã®è©±ãæ¸ãã¾ãã(d:id:atzy:20080905)ãã(èªç§°)æ£è¦è¡¨ç¾å°é家ã®ç§ããã»ã¨ãã©ä½¿ããã¦ããªãããã©ãããã¾ãããã¯ã¼ãæã¤æ©è½ãç´¹ä»ãã¾ãããã ããããç°ä¸å²ã¹ãã·ã£ã«ãã§ããç§ã¯ããã使ãå§ãã¦ããè©ããã¯æ²»ãããã¤ãçã¯ãããªããã女ã®åã«ã¢ãã¢ãã«ãªããã¨ã人çãå¤ããã¾ããã ç°ä¸å²ã¹ãã·ã£ã«ã¨ã¯ ãã®ãããªä¸é¢¨å¤ãã£ãååãã¤ãã¦ããã®ã¯ãç°ä¸å²(ããªãããã)ãããæåã®ã¢ã¤ãã¢ãçã¿åºããããã§ãã 2002å¹´4æ3æ¥ã«ã鬼è»ãã¨å¼ã°ããæ£è¦è¡¨ç¾ã©ã¤ãã©ãªé¢é£ã§ææ¡ããï¼ããã¦ä½¿ããããã«ãªãã¾ããã鬼è»ã¯Ruby 1.9ããPHP5ããã§å©ç¨ãããã¨ãã§ãã¾ãã (ruby-dev:16732) sharing sub-regexp ç°¡åã«ããã¾ãã¨ãåã表ç¾ãä½åº¦ãæ¸ãã®ãã¦ã¶ã¤ãã¨ãããã®ã§ããä¾ãã°ããã¹ãå(FQDN)ã«ããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}