From: Robert Klemme Date: 2010-08-24T22:35:13+09:00 Subject: Re: If input contains.... 2010/8/24 Hd Pwnz0r : > 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/