Not sure about the preg_match
etc (because you haven't shown what it is meant to do), but given your input and desired output this should work:
foreach($data as $key => $array) {
foreach($array as $value) {
$result[$key][] = array('value' => $value);
}
}