ID: 15413 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: PCRE related Operating System: win PHP Version: 4.0.6 New Comment:
Very likely to be a error in your regex. Ask support questions on the appropriate mailinglist. Previous Comments: ------------------------------------------------------------------------ [2002-02-06 19:27:52] [EMAIL PROTECTED] $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 this bug report at http://bugs.php.net/?id=15413&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php