Regular Expressions 101

Community Patterns

r/ProgrammerHumor comment regex

0

Regular Expression
Python

r"
(```|`)(python)?\s*?\n?(from \S+ )?import \S+(\n.*?;)*\n((.*return \S+```)|(`return \S+`))
"
gm

Description

Loading markdown...
Submitted by anonymous - 5 months ago