[pmwiki-users] Re: Regex check
Karl Loncarek
dh2mll at web.de
Wed Sep 7 11:10:32 CDT 2005
Karl Loncarek <dh2mll at web.de> wrote in
news:Xns96C6EA40627B4dh2mllwebde at 80.91.229.5:
> 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?
>
Anyone? I have now another user with this problem... Just checking what
PHP version he is using..
--
Bye
Karl (aka Klonk)
More information about the pmwiki-users
mailing list