[pmwiki-users] Regex check
Karl Loncarek
dh2mll at web.de
Sat Sep 3 16:02:30 CDT 2005
Hi,
I'm using the following line in the sectionedit script:
$p = preg_split('/((?<=header:\))|(?m:^))(?=====)/', $text);
This line splits the text into several sections, each section beginning
with "===="
I got a error report from a user who uses PHP 4.1.2.
The problem that occured: The very last section lost the first character,
i.e. The last section started with "===" instead of "====" as all the
others did.
Was/is this a problem of PHP 4.1.2? Is there a way to avoid it?
I don't know he history of PHP that's why I'm asking.
BTW. with PHP 4.4.0 and 4.3.x thsi code works fine.
Any ideas?
--
Bye
Karl (aka Klonk)
More information about the pmwiki-users
mailing list