$xNeTworKx: regulärer Ausdruck will nicht so recht

Beitrag lesen

Hallo,
Du hast Recht, es funktioniert wirklich erst wenn ich es so mache :

if ($input =~ /(<posting=$postingid>.+?</posting>)/s) {
   $altes_tag = $1;
   $input =~ s/$altes_tag/$altes_tag\n$neues_tag/;
}

danke,
$xNeTworKx.