Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-05-12 16:29
Updated·2021-05-12 16:40
Flavor·PCRE2 (PHP)

/
[ |\t]+\*\s+@access\s+(?:private|protected|public)\n
/
gm
Open regex in editor

Description

used for finding old skool @access tags in method phpdoc comments. any amount of whitespace can exist before * and before scope identifier

examples:

    * @access    public
Submitted by anonymous