From: [EMAIL PROTECTED] Operating system: win PHP version: 4.0.6 PHP Bug Type: PCRE related Bug description: preg_split drops characters
$html = {some html containing mulitple instances of "<!-- [some text] --> some text <-- end -->} $array = preg_split("'(?=<!--)(?!<!-- end -->)|(?<=\<!-- ende -->)'si", $html, -1, PREG_SPLIT_NO_EMPTY) preg_split should split the string in such a way, that the html-part and the commented part are each assigned to one array entry. preg_split does as expected, EXCEPT that the first character of the last array entry is disappears Server API Apache Win2000 -- Edit bug report at http://bugs.php.net/?id=15413&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15413&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15413&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15413&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15413&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15413&r=support Expected behavior: http://bugs.php.net/fix.php?id=15413&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15413&r=notenoughinfo -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php