Have a look at the gsub method on the String class.
http://www.rubycentral.com/ref/ref_c_string.html#gsub

Chad

--- Jens Luedicke <jens / irs-net.com> wrote:
> Hi there ...
> 
> My problem is that I want to replace every occurance
> 
> of a pattern in an array...
> 
> for i in file 
> 	i =~ # substitution here
> end
> 
> A Perl-Style substitution like: 
> 
> 	s/old/new/g;
> 
> doesn't work and Ruby's Reference/Tutorial 
> wasn't helpful at all to me. 
> 
> -- 
> with friendly regards....
>  	jens luedicke <jens / irs-net.com>
>  
>  PMC - Perl/Gtk/Gnome Mail Client
>      http://www.irs-net.com/
>  
>  >> President BU-ll-SH-it ...


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/