Regular Expressions 101

Community Patterns

Split full name (russian)

0

Regular Expression
PCRE (PHP <7.3)

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

Description

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

Submitted by Lekmaby - 8 years ago