4
I need to take the name and surname of a string. For example, if the full name is:
Renan Rodrigues Moraes
I just need to take Renan Rodrigues
. I know what to do but I don’t know how to do it. In case the name is Renan de Assis
it would be interesting to return Renan de Assis
.
I know what I must do but I don’t know how.
The main idea is to count two spaces, from the second showing nothing. Someone has a suggestion to extract this from the string?
Separates your string by spaces and takes the 1 and 2 part.
– PauloHDSousa