From: Rob Biedenharn Date: 2010-08-24T22:41:13+09:00 Subject: Re: If input contains.... On Aug 24, 2010, at 9:24 AM, 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 "$" > > etc. > > Help? > String#tr and String#gsub come to mind. -Rob Rob Biedenharn Rob@AgileConsultingLLC.com http://AgileConsultingLLC.com/ rab@GaslightSoftware.com http://GaslightSoftware.com/