Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^([^ ]+) ([^ ]+) (.+)$
/

Description

Split full name for russian notation. Example: Иванов Иван Иванович петров Result: [1]=> Иванов [2]=> Иван [3]=> Иванович петров

Submitted by Lekmaby - 9 years ago