Regular Expressions 101

Community Patterns

1

Match paths

PCRE2 (PHP >=7.3)
Match paths
Submitted by os_niko - 6 days ago
1

SUT - Package Matching

PCRE2 (PHP >=7.3)
test
Submitted by MHE - 14 days ago

async calls in foreach

0

Regular Expression
PCRE2 (PHP >=7.3)

/
foreach\((?<loop>[a-zA-Z0-9-. _\(\)]+)\n{(?<code1>[a-zA-Z0-9-. _\;\n(\){}]+)await(?<code2>[a-zA-Z0-9-. _\;\n(\){}]+)}
/
gm

Description

Loading markdown...
Submitted by mmateeva - 6 months ago