estoy probando con esta expresion regular pero no funciona
Código PHP:
preg_match_all("/\[app\](\d+)\[\/app\]/ise", $content, $matches);
//el resto del plugin
$sap = count($_GET)>0?'&':'?';
for($i=0;$i<count($matches[1]);$i++){
$id = $matches[1][$i];
$matches[1][$i] = '';
}
$content = str_replace($cmatches[0],$cmatches[1], $content);
return str_replace($matches[0],$matches[1], $content);
}