2010/8/24 Hd Pwnz0r <human.dictionary / rocketmail.com>:
> 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 "$"

input.gsub! /S/, '$'

Cheers

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/