You can't use re in normal Zope. You can modify Zope to allow it--follow the instructions in the PythonScript product. As for the formatting, I think you have to do it by hand, convert to an integer, convert the integer to a string, then insert commas and decimals as needed.