In Swift, it\'s easy to split a string on a character and return the result in an array. What I\'m wondering is if you can split a string by another string instead of just
import Foundation let inputString = "This123Is123A123Test" let splits = inputString.components(separatedBy: "123")