Subject: Re: [regexp] How to convert string "/regexp/i" to /regexp/i - ?
From: Michal Zacik <michal.zacik swan.sk>
Date: Fri, 21 Aug 2009 18:36:59 +0900
References: 344404
In-reply-to: 344404
Regexp.new(/regexp/i)
Joao Silva wrote:
> 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?
>