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
/
(?!\s)((\d*\.?\d*)*|([+*^\.\(\)\-])*?)?
/
gm
Input 1
1
New
This one works for value.match() in JS /(?!\s)(([+\-*^()])|(\d*\.?\d*)*)/gm The one in the bar shows how it collects the values 7 + 5 7+ 5 7 +5 5 + 7 6 * 5 6 ^ 5 6 - 5 (60 + 5) * 4 ( 70 + 5) + 4 +4 *657 (*6) 7.6656 ( 6.54 + 5) * 33.4 +-^*()00
Extraction