Re: Super regexp to format numbers
Alexandre Jousset <[email protected]> Tue, 29 Aug 2006 10:01:48 +0200
| Newsgroups | gmane.comp.lang.perl.fun |
|---|---|
| Organization | GTMP |
| Message-ID | <[email protected]> |
Hello, Bourgneuf Francois wrote: > This version works with decimals : > DB<1> $_=1234567.7891; > > DB<2> s/\B(?=(...)*\.)/ /g > > DB<3> print; > 1 234 567.7891 Great! I love this one! -- -- \^/ -- -- -/ O \--------------------------------------- -- -- | |/ \| Alexandre (Midnite) Jousset | -- -- -|___|--------------------------------------- --