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-Z0-9]+?\((.*?)\) [a-zA-Z0-9 ]*?\{
`
gm
Unit Tests
non-method function no parameters no returns
non-method function no returns with parameters
non-method function no parameters with returns
non-method function with returns and parameters
method function with no parameters no returns
method function with parameters no returns
method function with returns no parameters
method function with parameters and returns