Regular Expressions 101

Community Patterns

@var annotation regexp

0

Regular Expression
PCRE (PHP <7.3)

/
@var\s*(?<type>[\w\\<>,]+(?:\[\])?(\s*\|\s*[\w\\<>,]+(?:\[\])?)*)
/
g

Description

no description available

Submitted by anonymous - 5 years ago