Код: Выделить всё
$text =~ s#<v:imagedata src="(.*.)" (.*.)\/>#--><img src="$1" alt="" \/><!--#ig;
Код: Выделить всё
<v:imagedata src="./RGDMETMP1.files/image011.jpg" o:title="" gain="1.5625"
blacklevel="-5898f"/>
как тут написать это рег.выр. чтобы была замена, как обойти обзац (перенос строки) ??
я пробовал так:
Код: Выделить всё
$text =~ s#<v:imagedata src="(.*.)" (.*.)\/>#--><img src="$1" alt="" \/><!--#gsxie;
Код: Выделить всё
/per.pl > 11
syntax error at ./per.pl line 30, near "-->"
Execution of ./per.pl aborted due to compilation errors.