Tbpgr Blog

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

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

Ruby | Regexp | fixed_encoding?

概要 Regexp#fixed_encoding? -> bool 詳細 正規表現が任意の ASCII 互換エンコーディングとマッチ可能な時に false を返却。 サンプルコード require 'tbpgr_utils' bulk_puts_eval binding, <<-EOS /ascii/.fixed_encoding? /utf-8/u.fixed_encoding? /ほ…