From: XY$ Date: 2008-12-16T02:12:35+09:00 Subject: Re: Help with an "easy" regular expression substitution On Dec 15, 2:42 pm, Mark Thomas wrote: > On Dec 14, 1:33 pm, Iņaki Baz Castillo wrote: > > > Hi, I'm getting crazy to get a theorically easy substitution: > > > I've a file with a header: > >   X-Level: *** > > where the number of "*" is variable (from 0 up to 10). > > > And I just want to replace "*" by "X", so get: > >   X-Level: XXX > > > I don't get it since I don't know how to replace ANY number of "*" with the > > same number of "X" just in the header "X-Level". > > 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? :) K