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
/
^ *funcA *\(([^,\s;)]*) *(?:, *([^)\;]+))?
/
gm
Input 1
1
New
funcA(param0,param1,param2,param3); funcA(param0,param1,param2,param3, param4); funcA(param0, param1); funcA(param0); funcA(param0,param1,param2,param3);
Substitution
if(isTrue) funcB($1, funcC($2)
funcA(param0,param1,param2,param3); funcA(param0,param1,param2,param3, param4); funcA(param0, param1); funcA(param0); funcA(param0,param1,param2,param3);