Tbpgr Blog

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

書籍 Regular Expressions Cookbook | Ignore Case (?i)ascii

パンくず

書籍 Regular Expressions Cookbook
Ignore Case (?i)ascii

概要

大文字小文字を無視する方法について

構文

(?i)ascii

サンプル

require "pp"
pp /(?i)hoge/  =~ "HoGe"
pp /hoge/  =~ "HoGe"

結果

0
nil