Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?<au>(?<fn>[\p{L}\p{Pd}]+), (?<sn>(?: ?\p{L}\.)+)|(?<sn1>(?:\p{L}\. ?)+) +(?<fn1>(?:[\p{L}\p{Pd}]+ ?)+))
/
g

Description

Named Regex - Mixed pattern

Submitted by Dhanayan Shankar - 7 years ago