<?php
$str = '<[STRING]>';
$pattern = '#<(\[.*\])>#';

if(preg_match($pattern, $str, $matches)):
	var_dump($matches);
	$str = preg_replace($pattern, '<this is '.$matches[1].'>', $str);
endif;

echo $str;