Thousand Separator


/ Published in: Regular Expression
Save to your folder(s)

Separates every 3 digits. Replace with a period, comma, space, etc.


Copy this code and paste it in your HTML
  1. Pattern: /\d{1,3}(?=(\d{3})+(?!\d))/g
  2. Replace: $&,

URL: http://gskinner.com/RegExr/?2rhmc

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.