codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $string = " 0001 a b c d e 0002 f g h i j "; print_r(preg_split("/(?=\d{4})/", $string));
Private
[
?
]
Run code
Submit