Gossamer Forum
Home : Products : DBMan : Customization :

Re: How to convert xxxx to x,xxx

Quote Reply
Re: How to convert xxxx to x,xxx In reply to
Code:
$rec{'number_to_add_commas'} = reverse $rec{'number_to_add_commas'};
$rec{'number_to_add_commas'} =~ s/(\d\d\d)(?=\d)(?!\d*\.)/$1,/g;
$rec{'number_to_add_commas'} = reverse $rec{'number_to_add_commas'};


------------------
Chris
Subject Author Views Date
Thread How to convert xxxx to x,xxx santana 1784 Jan 25, 2000, 5:12 PM
Post Re: How to convert xxxx to x,xxx
Chris071371 1710 Jan 25, 2000, 5:49 PM
Post Re: How to convert xxxx to x,xxx
santana 1714 Jan 25, 2000, 5:59 PM
Post Re: How to convert xxxx to x,xxx
Chris071371 1721 Jan 25, 2000, 6:05 PM
Post Re: How to convert xxxx to x,xxx
santana 1724 Jan 26, 2000, 10:17 PM
Post Re: How to convert xxxx to x,xxx
santana 1709 Jan 26, 2000, 10:28 PM
Post Re: How to convert xxxx to x,xxx
Chris071371 1716 Jan 27, 2000, 5:30 AM
Post Re: How to convert xxxx to x,xxx
Eliot 1718 Jan 27, 2000, 8:03 AM