Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?:(\bpublic\b)\s|(\bprivate\b)\s|(\benum\b)\s\w+)
/
g

Description

This regex will match the class definition withing the cs file

Submitted by Gabriel Marius Popescu - 7 years ago