Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
[*\s]* # multiple space or asterisk characters @ # followed by the @ sign which (?P<name>[\w\\]+) # has a string of \w or \ characters following it \s*\(? # separated by spaces and maybe opening parenthesis (?P<value> # store the value attached to the named annotation (?: [^@]* # value is made of enlisted characters [^*\s)] # but does not end with ) )? # the value is optional parameter (?:\s|\n|\))
/
gsxmu

Description

Changed name to annotation name

Submitted by anonymous - 5 years ago