Re: [Tutor] Replacing characters

2007-05-25 Thread Kent Johnson
Per Jr. Greisen wrote: > Hi, > > I am replacing 4 characters with a number and I would like to make the > whitespace dynamic so > for fx. 1 it uses 3 whitespace and for 10 two and for 100 one etc. I am > using the replace() method. I'm not too sure what you want to do but probably str.rjust() o

[Tutor] Replacing characters

2007-05-25 Thread Per Jr. Greisen
Hi, I am replacing 4 characters with a number and I would like to make the whitespace dynamic so for fx. 1 it uses 3 whitespace and for 10 two and for 100 one etc. I am using the replace() method. Any help or advice appreciated Thanks in advance ___ T