[ create a new paste ] login | about

Link: http://codepad.org/9jU8Jaox    [ raw code | output | fork ]

PHP, pasted on Jan 12:
1
2
3
4
<?php
$foo = "foo.txt da\ code.txt bar.txt test.mp3 test2.pm3";

print_r(preg_split("/(?<=[a-zA-Z])\s/", $foo));


Output:
1
2
3
4
5
6
7
Array
(
    [0] => foo.txt
    [1] => da\ code.txt
    [2] => bar.txt
    [3] => test.mp3 test2.pm3
)


Create a new paste based on this one


Comments: