From: Sebastian Hungerecker Date: 2008-09-01T17:45:41+09:00 Subject: Re: How to replace a string with given pattern? Zhao Yi wrote: > I want to replace a string with the new value on a given regular > pattern. For example: > > "Hello".replace("/H/", "h")  #=> hello String#gsub (which is in the docs, btw) HTH, Sebastian -- NP: Amon Amarth - Twilight of the Thunder God Jabber: sepp2k@jabber.org ICQ: 205544826