ãã5æ¥ã§ãããããã¾ãã¦ããã§ã¨ããããã¾ãã æ¯å¹´æ°å¹´ã®ç®æ¨ãç«ã¦ãã®ã§ããããªããªãé£ãããã®ã§ããããã©ãä»å¹´ã¯é å¼µãã¾ãï¼ ãã¦ãæååå¦çã«å¼·ãããã°ã©ãã³ã°è¨èªã¨è¨ãã°Perlãæåã§ããRubyãããããã§ããRubyã®æ¨æºã©ã¤ãã©ãªãStringScannerãã使ãã°ãã¼ãµããã£ã¨ããéã«æ¸ãããã§ãã 試ãã«Windowsã§ããç®ã«ããã.iniããã¡ã¤ã«ãèªã¿è¾¼ã¿Rubyã®ããã·ã¥ã«èªã¿è¾¼ãããã°ã©ã ãæ¸ãã¦ã¿ã¾ãã require "strscan" def parse_ini src section = { "" => {} } current = section[""] s = StringScanner.new(src) while !s.eos? case when s.scan(/\s+/) # nothing when s.scan(/\[(.+?)\
{{#tags}}- {{label}}
{{/tags}}