From: Shawn Anderson Date: 2008-12-16T02:21:00+09:00 Subject: Re: Help with an "easy" regular expression substitution ------=_Part_37243_22779368.1229362109607 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline not sure if I understand what you're trying to do.. but it sounds like *** is a number right? so text.tr('*','X') becomes text.tr('\d','X') HTH /Shawn On Mon, Dec 15, 2008 at 9:12 AM, XY$ wrote: > On Dec 15, 2:42 pm, Mark Thomas wrote: > > On Dec 14, 1:33 pm, I=F1aki 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 "*" wi= th > 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 > > ------=_Part_37243_22779368.1229362109607--