[ create a new paste ] login | about

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

PHP, pasted on Jan 12:
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));


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


Create a new paste based on this one


Comments: