Regular Expressions 101

Community Patterns

1...567

Community Library Entry

1

Regular Expression
Rust

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 - a year ago