> Example, > A12B05C45D34 > > I need to split this into chunks of three A12,B05,C45..etc?
not sure if your string will always be the same patter but this might work $string = 'A12B05C45D34'; $array = preg_split ( '/([a-zA-Z]\d{2})/', $string, -1,PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); print_r($array); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php