Alexander Kellett wrote:

>On Sat, Dec 20, 2003 at 10:31:53PM +0900, Martin DeMello wrote:
>  
>
>>Elias Athanasopoulos <elathan / phys.uoa.gr> wrote:
>>    
>>
>>Well, for one, I think more people would expect it to be interpreted as
>>foo.gsub(Regexp.quote(bar), ...)
>>    
>>
>/me nods
>i use this same paradigm frequently. 
>its a bit icky for such a common action.
>  
>
how about:

foo.gsub!(/#{bar}/, ...)

fairly concise.

--
John Long
contact: http://wiseheartdesign.com