Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<summary>^.+?[a-z\d]{2,}[^\w]?[.?!])(?:\s|$)
/
img

Description

Using to extract PhpDoc summary. Note: PhpDoc must be trimmed at left (' ' and '*' are removed).

Submitted by WinterSilence - 3 years ago