From: Martin DeMello Date: 2010-08-24T22:32:48+09:00 Subject: Re: If input contains.... On Tue, Aug 24, 2010 at 6:54 PM, Hd Pwnz0r wrote: > I'm making a secure password generator, where the user inputs a word and > it translates it to something more secure, so if they entered "book" it > would return "b00k". I just don't know how to say like > > if input contains "S" replace with "$" Check out String#gsub http://ruby-doc.org/core/classes/String.html#M000817 martin