Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?<![final|import])static(?!\s*final)(?!.*{)
/
g

Description

Find static variables which are not declared as final.

Submitted by petod - 8 years ago