This can be used for direct match:
$string = 'fields[name_1]'; preg_match('/(.+)\[(.+)\]/', $string, $matches); print_r($matches);
Array (  => fields[name_1]  => fields  => name_1 )
$matches are what you needed.
Still I am unclear about your exact need!
Here are the explanation for the Regex: