2014-12-01から1ヶ月間の記事一覧
概要 『エンジニア界の巫女にパワーを!』問題 詳細 『エンジニア界の巫女にパワーを!』問題 を2014/12/04〜2014/12/19まで出題します。 https://codeiq.jp/ace/tenkai_tbpgr/q1201 どんな問題? 文字列をあるルールに沿って変換して数値を求めることで巫女…
概要 Regexp#to_s -> String 詳細 正規表現の文字列表現を生成して返却。 サンプルコード require 'tbpgr_utils' tmp = /(h.ge)(f.o)(b.r)/.to_s bulk_puts_eval binding, <<-EOS /h.ge/.to_s /(h.ge)(f.o)(b.r)/.to_s /#{tmp}/ =~ 'hogefoobarlast@@@' $~ /…