Regular Expressions 101

Community Patterns

Extract noun chunks

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(ADJ (COMMA ADJ )*)*(NOUN (DASH NOUN )*(DASH )?)*NOUN
/
gm

Description

Extract noun chunks in a sentence.

Submitted by anonymous - 3 years ago