Josh Cheek wrote: > Sorry, it gave me what I expected, and Ruby is usually intuitive, so I > thought I got it right. Mine solution has problems too--for the same reason. It needs something like this: arg_two = nil if arg_two == 0 regex = Regexp.new(pattern, arg_two) -- Posted via http://www.ruby-forum.com/.