Issue #1661 has been updated by Shyouhei Urabe.

Category set to core
Status changed from Open to Assigned
Assigned to set to Yukihiro Matsumoto

Parser issue.  Confirmed on all active branches I can test.

\s is eaten by Regexp::EXTENDED.  /\s/x do not have this effect.


zsh % ruby -ve 'p Regexp.new("\s*", Regexp::EXTENDED)'
ruby 1.9.2dev (2009-06-17 trunk 23707) [x86_64-linux]
-e:1:in `initialize': target of repeat operator is not specified: / */x (RegexpError)
        from -e:1:in `new'
        from -e:1:in `<main>'
zsh % ruby -ve 'p /\s*/x'
ruby 1.9.2dev (2009-06-17 trunk 23707) [x86_64-linux]
-e:1: warning: ambiguous first argument; put parentheses or even spaces
/\s*/x
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1661

----------------------------------------
http://redmine.ruby-lang.org