>preg_match("/^delete([0-9]{1,3})/", $subarray, $deleteid); >print (implode(", ", $deleteid)); > >but this doesn't work. and doesn't 'cause i was using an array and not a string (doh!) fixed it now! as you were... : ) k