Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?<Loop> (?<NewBlock> (?:(?: ^[\s]*\n | ^(?:(?!\/\*).)+\n | ^(?:(?!\/\*).)+ ))+ )? (?<OldBlock> (?: \/\*.+\*\/ | (?:\/\*.*\n) (?:(?: ^[\s]*\n | ^(?:(?!\*\/).)+\n | ^(?:(?!\*\/).)+ ))+ \*\/ ) )? )+
/
gmx

Description

Real Shit

  • forgot why I started making this midway thru
Submitted by anonymous - 5 years ago