can the below reular expression can be written in another way, to get 
the same output ?

(arup~>~)$ pry --simple-prompt
>> s = "315 Kw (422 Engine power (HP))"
=> "315 Kw (422 Engine power (HP))"
>> s[/(\d+)[^0-9]*(\d+)/,2]
=> "422"
>> s[/(\d+)[^0-9]*(\d+)/,1]
=> "315"
>>

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