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
Regex to find only numbers
Open Workspace
PCRE (Legacy)
Match
Created 2017-06-11 23:13
0
Regular Expression
/
^
(?!
(
^$
|
[
-
]
{1}
[
.
]
{1}
|
[
0
]
{1}
[
0
-
9
]
+
|
[
-
]
{1}
[
0
]
{1}
[
0
-
9
]
+
)
)(
[
\-
]
{0,1}
[
1
-
9
]
?
[
0
-
9
]
*
(
(
\.
|
\,
)
[
0
-
9
]
*
)?
|
[
0
]
(
(
\.
|
\,
)
[
0
-
9
]
*
)?
)
$
/
g
Description
No description provided.
Submitted by
Anonymous