From: Zhao Yi Date: 2008-09-01T17:36:34+09:00 Subject: How to replace a string with given pattern? I want to replace a string with the new value on a given regular pattern. For example: "Hello".replace("/H/", "h") #=> hello -- Posted via http://www.ruby-forum.com/.