Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
(?<!\S)(?:\$\s*(?:\d+(?:\,\d+)?)|(\d+(?:[ -]\d+)+\.?|\d{3,}))(?!\S)
"
gm
Input 1
1
123456 1234567890 12345 12,123 1-2-3 $1 $12,123 $123654, $ 123654 123-456-789 123-456-789. 123-456 123 456 123 456 789 123 456 789. 123 456 123 456 789 123 456 123 456 789 $123654 $ 123654 12,4569 123*123*7732 123h434k5454
Substitution
123456 1234567890 12345 12,123 1-2-3 $1 $12,123 $123654, $ 123654 123-456-789 123-456-789. 123-456 123 456 123 456 789 123 456 789. 123 456 123 456 789 123 456 123 456 789 $123654 $ 123654 12,4569 123*123*7732 123h434k5454