Created
July 29, 2020 04:11
-
-
Save devlatte/3bb923ac0b70aa02a5645012aecf2f28 to your computer and use it in GitHub Desktop.
presto add thousand separator w/ regexp, regular expression
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
select regexp_replace('100000', '(\d{1,3})(?=(\d{3})+(?!\d))', '$1,'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment