swift
1var list:[String] = ["New 52-Week Highs: 134\nHIGH", "PRICE", "CHG", "CHG %", "VOLUME\nAberdeen Global Dynamic Dividend Fund", "10.49", "10.38", "-0.02", "-0.19", "46.8K\nAegon Funding Co. LLC 5.1% Sub. Notes due 2049", "25.92", "25.84", "-0.05", "-0.19", "24.7K\nAgilent Technologies Inc.", "85.45", "85.30", "0.04", "0.05", "271.9K\nAir Lease Corp.", "48.44", "48.36", "0.26", "0.54", "137.0K\nAlibaba Group Holding Ltd. ADR", "215.43", "214.26", "-0.57", "-0.27", "5.5M\nAllianceBernstein Global High Income Fund Inc.", "12.18", "12.18", "0.05", "0.41", "64.0K\nAmerican Financial Group Inc. 5.125% Sub. Deb. due 2059", "27.18", "27.09", "0.18", "0.67", "40.1K\nApollo Global Management Inc. 6.375% Pfd. Series B", "27.40", "27.40", "0.01", "0.04", "2.6K\nAquaVenture Holdings Ltd.", "27.78", "27.18", "0.08", "0.30", "961.1K\nArdagh Group S.A. Cl A", "20.40", "19.89", "-0.05", "-0.25"] 2 3
という配列から\nが含まれている要素だけを取り出すにはどうすればかんたんですか?
既存の配列の要素の中で〇〇〇という要素が含まれているものを抜き出して新しい配列を作る方法を教えて下さい教えて下さい
解決したのであれば質問をクローズしてください。