From: "Ivan V." Date: 2007-07-05T01:06:12+09:00 Subject: Re: Using eval() to create a Regexp object from a string Sebastian Hungerecker wrote: > Ivan V. wrote: >> I'm trying to create a Regexp object by calling eval like this: > > I'm sorry, but why don't you just do regexp=Regexp.new(your_string) ? Because I didn't thought about that and I'm a complete newb regarding Ruby and Regexp (in general), as pointed out by David's correction (the '^' is for the start of the string, not the end - thanks!). Thanks a lot :) - Ivan V. -- Posted via http://www.ruby-forum.com/.