From: MonkeeSage Date: 2006-10-03T16:15:10+09:00 Subject: Re: shell, ruby and regexp Une b�vue wrote: > that didn't work, my script sees it as a string and even if (for this > arg and if enclosed with //) : > > this_arg=Regexp.new(this_arg) > > then if this arg = "/to.*/" > > i get : > > puts this_arg.source # (after Regexp.new) > > # => /to.*/ INSTEAD OF to.* this_arg=Regexp.new(this_arg[1..-2]) Regards, Jordan