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
/
(?<func>[a-zA-Z_]\w+)\s*(\((?>[^()]+|(?2))*\))
/
gxm
Input 1
New
var someVar = myValue; object.subob ject.function(with, some = obj.func(a, b[2][1]), arguments); return true; // or var someVar = myValue; object.subobject.function(with, some = obj.fu nc(a, b[2][1]), arguments); return true; // or var someVar = myValue; object.subobject.funct ion(with, some = obj.func(a, b[2][1]), arguments); retun true; // and so on
Substitution
var someVar = myValue; object.subob ject.function(with, some = obj.func(a, b[2][1]), arguments); return true; // or var someVar = myValue; object.subobject.function(with, some = obj.fu nc(a, b[2][1]), arguments); return true; // or var someVar = myValue; object.subobject.funct ion(with, some = obj.func(a, b[2][1]), arguments); retun true; // and so on