Mailinglisten-Archive |
>$str = "Eine Seite im <b> Internet </b> www.php3.com"; >$str = preg_replace("!<b>(.+)<\/b>!","<b>".strtoupper("\\1")."</b>",$str); > ^^^^^ ?????? Description ( http://www.php.net/manual/en/function.preg-replace.php ) mixed preg_replace (mixed pattern, mixed replacement, mixed subject [, int limit]) Searches subject for matches to pattern and replaces them with replacement. If limit is specified, then only limit matches will be replaced; if limit is omitted or is -1, then all matches are replaced "!<b>(.+)<\/b>!" kann ja nicht gefunden und replaced werden, versuch mal : "<b>(.+)<\/b>" Gregor
php::bar PHP Wiki - Listenarchive