From: "David A. Black" Date: 2008-12-16T03:55:37+09:00 Subject: Re: Help with an "easy" regular expression substitution Hi -- On Tue, 16 Dec 2008, Mark Thomas wrote: > >>> Since I haven't seen the obvious answer yet... >> >>> text.tr('*','X') >> >>> -- Mark. >> >> Mark, >> The request was to make the replacement only in the header, isn't it? >> :) > > excuse me... > > header.tr('*','X') > > Better? :) If you can be sure you won't get any false positives. The original question was how to change: X-Level: *** to X-Level: XXX I don't know whether * occurs on other lines. David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2)