Guarda la faccio ancora più semplice, vi chiedo la cortesia di suggerirmi come:
1. Data una stringa s = "//abcderfgiDC4gtredfrtgff" voglio che diventi così s = "//abcderfgiDC4" cioè selezionare una substring che inizia con "//" e finisce con "DC4"
2. data una stringa ad esempio s = "//abc;//cde;//efg;" voglio dividerla in un array di sotto stringhe con "//" e ";" i caratteri che delimitano le sottostringhe.
s[0] = //abc;
s[1] = //cde;
s[2] = //efg;

Rispondi quotando