K
K
Konstantin Malyarov2018-06-19 18:50:03
Python
Konstantin Malyarov, 2018-06-19 18:50:03

How to make the regex work properly?

How to make regular expression work with full name?
How to divide: Ivanov Ivan Ivanovich - I understood how to divide Mergaliev Magomed Ikhtiyar oglu?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
longclaps, 2018-06-19
@longclaps

Stay away from the regular.

print('Мергалиева  Магомеда Ихтияр оглы'.split(maxsplit=2))

D
Dimonchik, 2018-06-19
@dimonchik2013

machete
, by the way, Petrov - Vodkin happens

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question