Regular Expressions 101

Community Patterns

1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - 9 hours ago
1

extract url

PCRE2 (PHP >=7.3)
extract url
Submitted by anonymous - 13 days ago

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 - 7 months ago