vinoth.ree has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
I have a integer number that should be represented as money format
Example:
INPUT:4123456789
OUTPUT:
4,12,34,56,789
How to do it in regular expression?
The input length may increase!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Integer to Money format
by happy.barney (Friar) on Jan 20, 2011 at 07:00 UTC | |
by vinoth.ree (Monsignor) on Jan 20, 2011 at 08:13 UTC | |
Re: Integer to Money format
by toolic (Bishop) on Jan 20, 2011 at 13:45 UTC | |
by tilly (Archbishop) on Jan 20, 2011 at 16:05 UTC | |
Re: Integer to Money format
by lyklev (Pilgrim) on Jan 20, 2011 at 08:06 UTC | |
by CountZero (Bishop) on Jan 20, 2011 at 09:59 UTC | |
by lyklev (Pilgrim) on Jan 20, 2011 at 11:54 UTC | |
Re: Integer to Money format
by chrestomanci (Priest) on Jan 20, 2011 at 09:04 UTC | |
by happy.barney (Friar) on Jan 20, 2011 at 09:27 UTC | |
by Anonymous Monk on Jan 20, 2011 at 09:34 UTC | |
Re: Integer to Money format
by sundialsvc4 (Abbot) on Jan 20, 2011 at 15:05 UTC | |
by Anonymous Monk on Jan 20, 2011 at 15:07 UTC |
Back to
Seekers of Perl Wisdom