Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Community Library
Search community submissions...
x
Us Currency Format with Length Limitation
Open Workspace
PCRE (Legacy)
Match
Created 2015-09-17 11:24
1
Regular Expression
/
(?!
^
\$
0
[
1
-
9
]
)(?=
^
(
\$
[
0
-
9
]
+
(
\,
[
0
-
9
]
{3}
)*
)+(
\.
[
0
-
9
]
+
)?
$
)
^.
{1,19}
$|
(?!
^
0
[
1
-
9
]
)(?=
^
(
[
0
-
9
]
+
(
\,
[
0
-
9
]
{3}
)*
)+(
\.
[
0
-
9
]
+
)?
$
)
^.
{1,18}
$
/
Description
Us Currency Format with Length Limitation optional(,)(.decimals)
Submitted by
Renu Anil