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
Get python function declaration
Open Workspace
Rust
Match
Created 2023-05-01 17:57
1
Regular Expression
r"
(?P<function>
def
\s
+
(?P<function_name>
\w
+
)
\s
*
\(
(?P<parameters>
(?:
.
|
\n
)*?
)
\)
:
\s
*
(?:
\n
[
\t
]
+
.*?
)*
\n
)
"
g
Description
Gets the python function declarations
Submitted by
Anonymous