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/.