servus
hab wieder mal ein prob mit regexp:
folgende
PHP-Code:
$body = "[url='www.wcm.at/?action=show&UID02&gb=3']Gästebuch[/url]";
echo preg_replace("/&(^amp;)(^auml;)(^uuml;)(^ouml;)(^szlig;)(^pound;)(^copy;)(^lt;)(^gt;)(^nbsp;)(^cent;)(^iecl;)(.*?)/i", "&",$body);
sollte also alle normalen & in html & verwandeln in links damit das ganze schön xml konform ist. aber leider funktioniert es nicht. warum?