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
Filter public functions
Open Workspace
Python
Match
Created 2016-06-09 17:22
1
Regular Expression
r"
[
\n
]
+
\s
+
public
function
[
a
-
z
]
+
[
(
]
[
a
-
zA
-
Z0
-
9=',
]
+
[
)
]
\n
+
\s
+
[
{
]
\n
(
.
+?
)
\n
+
\s
+
[
}
]
"
s
Description
It filters out the body of all public functions.
Submitted by
Sachin