1 2 3 4 5
<?php $foo = "foo.txt what\ \ \ the da\ code.txt bar.txt"; print_r(preg_split("/(?<=[a-zA-Z])\s/", $foo));
1 2 3 4 5 6 7
Array ( [0] => foo.txt [1] => what\ \ \ the [2] => da\ code.txt [3] => bar.txt )