fork download
  1. <?php
  2. $string = "0nl10000143947019,23000143947456,23000143947456,10450143947022";
  3. preg_match("/^(\d+)([a-z]+)(.*?,([^,]*))$/i", $string, $m);
  4.  
  5. print_r($m);;
  6. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
Array
(
    [0] => 0nl10000143947019,23000143947456,23000143947456,10450143947022
    [1] => 0
    [2] => nl
    [3] => 10000143947019,23000143947456,23000143947456,10450143947022
    [4] => 10450143947022
)