Thanks Tom and Jeff. Using the global flag (which I didn't know about) has solved it. Thank you very much. Could I use regexp to format numbers as currency? I'm trying to do this, but it doesn't seem easy... PS: Tom, my name is Paulo. "Amazon" is part of my e-mail address ;) /Paulo Guedes