Regular Expressions 101

Community Patterns

main() replacer

0

Regular Expression
Python

r"
[\w ]+ main\([\w ]*\){(?P<body>(?:\n|.)+)}
"
g

Description

replaces the main function from c

Submitted by anonymous - 6 years ago