Eventuali duplicati:
How do I split a string by a multi-character delimiter in C#?Come posso dividere una stringa con un delimitatore di stringhe?
ho questa stringa:
My name is Marco and I'm from Italy
vorrei dividerlo con delimitatore is Marco and
, quindi dovrei ottenere un array con
My name
a [0] eI'm from Italy
a [1].
Come posso farlo con C#?
provato con
.Split("is Marco and")
ma vuole solo un singolo carattere.
[Questo] (http://stackoverflow.com/questions/1126915/how -do-i-split-a-string-by-a-multi-character-delimitatore-in-c) è stato chiesto prima. –
correlati https://stackoverflow.com/questions/315358/c-sharp-syntax-split-string-into-array-by-comma-convert-to-generic-list-and – barlop