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: $&,


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.