AutoHotkey Community

It is currently May 27th, 2012, 1:39 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: October 28th, 2011, 9:24 pm 
Splitting big numbers is very useful. Split numbers look better and it's easier to assimilate or transcribe them.
Different countries use different symbols for splitting. You can with easy customize the RegEx, as Odlanir showed. ( Thanks )

In my country they split fractional part too, like this: 123 456 789,000 000 000
For this task you need another RegEx.
Code:
RegExReplace(var, "(\G(?<=.)|[.,])\d{3}(?=\d)|\d(?=(\d{3})+(\D|$))", "$0,")


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: chaosad and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group