Created
August 24, 2022 12:36
-
-
Save cabb/eac497f4596b32e0d0fb3ca2207b4a99 to your computer and use it in GitHub Desktop.
Regex to add thousand separators to long numbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Regex | |
\d(?=(?:\d{3})+(?!\d)) | |
# replace | |
$0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment