Ari Brown wrote: > Ugh. If I must (which I must). You missed where I said I didn't know the actual answer. > What would you suggest as syntax? Ruby itself, as a DSL; that was the point. rx = match('foo') or match('bar') # like /(foo|bar)/ assert_equal [['foo', 'bar']], rx('a foo b bar') Make match() return an object that overloads the or operator, and away you go! -- Phlip http://www.oreilly.com/catalog/9780596510657/ "Test Driven Ajax (on Rails)" assert_xpath, assert_javascript, & assert_ajax