From: Robert Klemme Date: 2008-09-01T17:38:53+09:00 Subject: Re: How to replace a string with given pattern? 2008/9/1 Zhao Yi : > I want to replace a string with the new value on a given regular > pattern. For example: > > "Hello".replace("/H/", "h") #=> hello Please look it up in the docs http://www.ruby-doc.org/ Cheers robert -- use.inject do |as, often| as.you_can - without end