From: Harry Kakueki Date: 2010-10-10T02:30:48+09:00 Subject: Re: Better way to remove all occurrence of matches on a String > > What feels a bit "awkward" to me in the first approach is to specify I > want no replacement (so nothing, so I should not have to specify it). > If you *really* want to avoid a second parameter, you could try something like this. But, I would not actually say it is better. Anyway.... str = "foo bar foo bar foo" p str.split(/\bbar\b/)*"" Harry