From: 7stud -- Date: 2009-08-22T02:52:31+09:00 Subject: Re: How to convert string "/regexp/i" to /regexp/i - ? 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/.