Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-03-30 11:49
Flavor·PCRE2 (PHP)

/
^([A-Za--ÖØ-öø-ú]+) ((?:(?:[D-d]e|[D-d]a|[D-d]o|[D-d]as|[D-d]os|[E-e]m|[E-e]|[D-d]el|[E-e]l)\s(?:[A-Za--ÖØ-öø-ú]+))|(?:[A-Za--ÖØ-öø-ú]+))
/
gim
Open regex in editor

Description

An expression to get nouns by grouping prepositions with surnames

Submitted by maurocsjr@gmail.com