[pcre-dev] PCRE Bug

Top Page
Delete this message
Author: David
Date:  
To: pcre-dev
Subject: [pcre-dev] PCRE Bug
Hi, I am using PCRE via PHP and think I may have found a bug. I have
tested my code and am sure that the problem is with regular expression
and not something else.

I am using this regular expression, which is causing problems:

/<$element *(.*)>(.*)<\/$element>/iU

where $element is replaces, such as:

/<a *(.*)>(.*)<\/a>/iU


It works fine, but after a number of recursions I am getting a seg
fault.

I think its got something to do with the part ' *' as it was not seg
faulting until I added this.

David