Answer the question
In order to leave comments, you need to log in
How to split a string with an array of words?
There is a text (string).
There is an array of words (also string).
You need to split the text into an array of strings. The delimiter is each word in the array. There is a function to split by a string: components(separatedBy:)
But I didn’t find an array
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question