if(preg_match('/[img](.*?)[/img]/si',$stringa,$m)){
echo $m[1];
}