Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Add commas between numbers
Open Workspace
PCRE2 (PHP)
Match
Created 2022-07-17 20:21
1
Regular Expression
/
(
\d
{1}
\.
\d
{5,8}
|
0
)
\s
/
gm
Description
This regex separates numbers with commas taking 0 into account.
Submitted by
Anonymous