2014-12-01から1日間の記事一覧
概要 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@@@' $~ /…
概要 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@@@' $~ /…