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"
(\w+)(?!\()\W+
"
gm
Input 1
y ~ word1+word2 - 3word:word4 ** word5 + Function(word6)
Substitution
y ~ word1+word2 - 3word:word4 ** word5 + Function(word6)