Просмотр поста #85592: Регулярочки. :3

.
~XeOn~
preg_match('#<gg>(.*)(</gg>)#isU', $text, $matches);
echo $matches[1];