|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-24 09:25 UTC] andrei@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 06:00:01 2025 UTC |
Using Zeevs Build of RC1 on Win32 the preg_replace function either does not work as I expected or ignores limit, taking the example from the manual.. ======= test.php ========= <?php $html_body = "<hello><this><is><a><test>"; print preg_replace ("/(<\/?)(\w+)([^>]*>)/e", "'\\1'.strtoupper('\\2').'\\3'", $html_body, 2); ?> =========================== Expected Output: <HELLO><THIS><is><a><test> Actual output: <HELLO><THIS><IS><A><TEST> I suppose at least ignoreing it you dont get the same error as in pl2 where it gave wrong parameter count... -James