Regexp ignore case option

e$B!!$5$5$@$G$9!%e(B

e$B!!e(B1.9 e$B$Ge(B test-all e$B$r$9$k$H$3$s$J<:GT$r$7$^$9!%e(B

  1. Failure:
    test_s_new(TC_IPAddr) [/home/ko1/ruby/trunk/lib/ipaddr.rb:580]:
    Exception raised:
    Class:
    Message: <“invalid address”>
    —Backtrace—
    /home/ko1/ruby/trunk/lib/ipaddr.rb:513:in raise' /home/ko1/ruby/trunk/lib/ipaddr.rb:513:inin6_addr’
    /home/ko1/ruby/trunk/lib/ipaddr.rb:473:in initialize' /home/ko1/ruby/trunk/lib/ipaddr.rb:581:innew’
    /home/ko1/ruby/trunk/lib/ipaddr.rb:581:in block in test_s_new' /home/ko1/ruby/trunk/lib/ipaddr.rb:580:intest_s_new’

e$B!!860x$Oe(B //i e$B$,8z$$$FL5$/$F!$e(B

p(/[^0-9a-f:]/i =~ “3FFE:505:ffff::/48”)
#=> 1

e$B$H$J$k$?$a$N$h$&$G$9$,!$$I$&$7$?$b$s$G$7$g$&$+!%e(B/[^0-9a-f:]/i
e$B$re(B
/[^0-9a-fA-F:]/ e$B$K$Y$?$K=q$1$P!$$^[email protected]$O$9$k$s$G$9$,!%e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:32267] regexp ignore case option”
on Tue, 13 Nov 2007 23:15:26 +0900, SASADA Koichi [email protected]
writes:

|e$B!!e(B1.9 e$B$Ge(B test-all e$B$r$9$k$H$3$s$J<:GT$r$7$^$9!%e(B

e$B$3$l$O!"e(B

  1. Failure:
    test_ruby_dev_31309(TestRegexp)
    [/home/ko1/ruby/trunk/test/ruby/test_regexp.rb:29]:
    <“Ruby”> expected but was
    <“-uby”>.

e$B$HF1$8$G54<Ve(B5.9.0e$B$N%P%0$G$9!#D>$5$J$/$F$O$$$1$J$$$N$@$H$OG’e(B
e$B<1$7$F$$$^$9$,!"$J$+$J$+<j$,=P$;$^$;$s!#e(B