From: Jun Young Kim Date: 2008-12-12T12:00:35+09:00 Subject: Re: problems in String type argument for Regular Expression I mean I have a regular expression as a string. puts aPattern => "/[aeiou]/" When I convert it as a Regexp instance, the result is => /\/[aeiou]\// At this point, the given regular pattern is not regular expression anymore, it's just a string. 2008. 12. 11, ¿ÀÈÄ 6:06, Jun Young Kim ÀÛ¼º: > thanks for your reply, brian. > > How about Regexp.new("/[aeiou]/") ? > => /\/[aeiou]\// > > 2008. 12. 11, ¿ÀÈÄ 5:38, Brian Candler ÀÛ¼º: > >>> Any ideas on how to do I convert string to patten? >> >> irb(main):001:0> Regexp.new("[aeiou]") >> => /[aeiou]/ >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> > > >