/ Published in: Regular Expression
                    
                                        
Separates every 3 digits. Replace with a period, comma, space, etc.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
Pattern: /\d{1,3}(?=(\d{3})+(?!\d))/g
Replace: $&,
URL: http://gskinner.com/RegExr/?2rhmc
Comments
 Subscribe to comments
                    Subscribe to comments
                
                