]*>(.*?)]*>#s"; preg_match( $pattern, $string, $matches ); return $matches[1]; } }