Why I am not getting second capture from the string

irb(main):001:0> message = '#bat with some #Ram'
=> "#Identifier with some #text"
irb(main):004:0> message[/(#\w+)/,2]
=> nil
irb(main):005:0> message[/(#\w+)/,1]
=> "#bat"
irb(main):006:0>

Why does `message[/(#\w+)/,2`] return nil ?]

Rubular - http://rubular.com/r/rZgnEP3hSP

-- 
Posted via http://www.ruby-forum.com/.