<?php
$text = 'First string here(second here)';
if (preg_match('~^([^\(]+)\(([^\)]+)\)$~', $text, $match)) { print "$match[1]\n";
print "$match[2]";
}
?>
PD9waHAKICAgICR0ZXh0ID0gJ0ZpcnN0IHN0cmluZyBoZXJlKHNlY29uZCBoZXJlKSc7CiAgICBpZiAocHJlZ19tYXRjaCgnfl4oW15cKF0rKVwoKFteXCldKylcKSR+JywgJHRleHQsICRtYXRjaCkpIHsKICAgICAgICBwcmludCAiJG1hdGNoWzFdXG4iOwogICAgICAgIHByaW50ICIkbWF0Y2hbMl0iOwogICAgfQo/Pg==