From: Mark Thomas Date: 2008-12-15T23:37:40+09:00 Subject: Re: Help with an "easy" regular expression substitution 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.