in reply to Re^3: Making a regex case insensitive
in thread Making a regex case insensitive
>perl -le "'aA' =~ /(.*)/i && print $1 aA
Only the matching is affected. /i causes lower- and upper-case letters to match lower- and upper-case versions of itself.
Maybe you were thinking of
>perl -le "lc('aA') =~ /(.*)/ && print $1 aa
|
|---|