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
Stack Overflow (match only words)
Open Workspace
Python
Match
Created 2021-03-17 05:33
0
Regular Expression
r"
(
\w
+
)(?!
\(
)
\W
+
"
gm
Description
a word is anything valid within a parens (like in a function), but the function itself should not be matched
a word may have a numeric at the end or the start
there is no guarantee of a single space (or ANY space other than some operators)
Submitted by
Cambuchi