in reply to Re: Dollars and regex cents
in thread Dollars and regex cents

As documented, sprintf returns a string you do not have to immediately print. You can just take the result of sprintf and store it in a variable.