From: Ken Paul Date: 2013-03-16T14:29:34+09:00 Subject: combine two regular expressions 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/.