Regular Expressions 101

Community Patterns

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 - 2 years ago