Hi there,

How to combine the two regular expressions into one?

reg1 = /\w+[_][0-9]+$/
reg2 = /\w+$/

it seems that match(/\w+\([_][0-9]+\)?$/ does not work, any idea?

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