Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-04-30 16:21
Flavor·ECMAScript (JavaScript)

/
(?<=\d)(?=(\d{3})+(?!\d))
/
g
Open regex in editor

Description

Commafy any number!

30000 = 30,000 303123 = 303,123 999888777 = 999,888,777

Submitted by Mendel Groner