1.9: no warning: regexp has invalid interval

[email protected]>;3OB9-$G$9!#e(B

http://rakunet.org/TSNET/TSperl/24/721.html
e$B$r8+$F5$$E$$$?$N$G$9$,!"e([email protected][email protected],I=8=$Ne(B
e$BNL;XDj;Re(B {n,m} e$B4X78$N7Y9p$,=P$^$;$s!#e(B

% ruby18 -ve ‘/.{1, 2}/ =~ “”’
ruby 1.8.5 (2006-08-09) [i686-linux]
-e:1: warning: regexp has invalid interval
-e:1: warning: regexp has `}’ without escape
% ruby19 -ve ‘/.{1, 2}/ =~ “”’
ruby 1.9.0 (2006-08-09) [i686-linux]
%

Kazuhiro NISHIYAMA wrote:

ruby 1.9.0 (2006-08-09) [i686-linux]
%

e$B$I$3$^$GJx$l$?I=5-$KBP$7$F!“7Y9p$^$?$O%(%i!<$H$9$ke(B
e$B$N$+4p=$,$o$+$i$J$+$C$?$N$G!":#$OA4$/=P$7$F$$$^$;$s!#e(B e$B4p=$,7h$^$C$F$$$l$P!”=P$;$k$H;W$$$^$9!#e(B

/a{/, /a{2/, /a{2,/, /a{2,3/, /a{2, }/, /a{ ,3}/

e$B7+$jJV$7$NBP>]$,B8:_$7$J$$>[email protected]$1$O%(%i!<$K$7$F$$$^$9!#e(B
/{2,3}/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs