Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2014-11-23から1日間の記事一覧

Ruby | Regexp | casefold?

概要 Regexp#casefold? 詳細 正規表現が大文字小文字の判定をしないようにコンパイルされている時、 真を返却。 サンプルコード require 'tbpgr_utils' bulk_puts_eval binding, <<-EOS /h.ge/i.casefold? /h.ge/.casefold? Regexp.compile("h.ge", Regexp::…