Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
(?P<number_capture>(?P<pre1>(?<![^0-9,.+-])|)(?P<number>(?P<sign_symbol_opt1>(?<![0-9])[+-])?(?P<whole_number_w_thous_sep>(?P<first_group>\d{1,3})(?P<thousands_separator>[ ,])(?P<three_digits_w_sep>(?P<three_digits>\d{3})(?P=thousands_separator))*(?P<last_group_of_three>\d{3})(?!\d)|(?P<whole_number_w_o_thous_sep>\d+))(?P<decimal_separator_1>[.])?(?P<fractional_w_whole_before>(?<=[.])(?P<digits_after_decimal_sep_1>\d+))?(?P<post1>(?<![^0-9,.+-])|)|(?P<pre2>(?<![^0-9,.+-])|)(?P<fractional_without_whole_before>(?P<sign_symbol_opt2>(?<![0-9])[+-])?(?P<decimal_separator_2>[.])(?P<digits_after_decimal_sep_2>\d+)))(?P<post2>(?<![^0-9,.+-])|))
"
gm
Input 1
1
New
129.0.0.1 3427132435331334442334411 5 3,429 -24 +373,243,555.001 88,23,45,22,256 2 524 135 634 555 243 .832554342356 0000005.3145 128 4,128,42,3,18322,9,0.3,238023,234,2,341,352,22 3,523,136,453,462,734,834,756.0000/324,523,000,321,999.7 129.0.0.1 0.81937 22 418 524 013 523.8 22 341.123 423 512 891 342 . 7094253434.23444354 . 555-555-5555 27+4 325/7 137.035999173 132 23,54633332345325432 217. +.32 5-.84133 -.5 +0.5 -0.3
Substitution