fork download
  1. import java.util.Arrays;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5. String str = "D:/test/for test/change.txt:D:/test/for test/further.txt:D:/test/for test/yandex.txt";
  6. String[] paths = str.split(":(?=[A-Za-z]:\\/)");
  7. Arrays.stream(paths).forEach(System.out::println);
  8. }
  9. }
Success #stdin #stdout 0.08s 48584KB
stdin
Standard input is empty
stdout
D:/test/for test/change.txt
D:/test/for test/further.txt
D:/test/for test/yandex.txt