From: Fleck Jean-Julien Date: 2009-08-21T18:28:15+09:00 Subject: Re: [regexp] How to convert string "/regexp/i" to /regexp/i - ? 2009/8/21 Joao Silva : > When i try to use: > >>> Regexp.new("/regexp/i") > => /\/regexp\/i/ > > But it's not what i want - i need: > > /regexp/i > > :-( > > How i can convert this proper way? Try without the quotes >> Regexp.new(/regexp/i) => /regexp/i Cheers, -- JJ Fleck PCSI1 Lycée Kleber