L
L
Lici2015-03-08 00:21:43
Swift
Lici, 2015-03-08 00:21:43

How to "parse" a string in Swift?

Text is entered into a TextView. It is necessary to "parse" it according to a certain rule into a multidimensional array. There is a text:

<text11?text12?text13><text21?text22?text23><text31?text32?text33>

And you need to get a 2-dimensional array-matrix at the output:
text11 text12 text13
text21 text22 text23
text31 text32 text33 Tell me
how to do it better.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mamkaololosha, 2015-03-08
@Lici

> swift
It's not even a programming language. This is the language of routine automation. Everything is done in 1.5 lines. Even the sky, even Allah.

split("hello world") {$0 == " "}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question