Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

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