[PHP] PCRE vs. POSIX-extended for regular expressions

2004-01-28 Thread SLanger
Hello

The reaseon why PCRE is faster is because the POSIX standard demands to 
return the longest matching string which means POSIX checks all possible 
matches while PCRE simply returns the first valid match. In cases where 
there is no match both have to check all matches. 
The other thing is, as mentioned before PCRE is a lot more powerfull  than 
POSIX. It contains stuff like look ahead,  look behind which POSIX doesn't 
support. 

Regards
Stefan Langer

Re: [PHP] PCRE vs. POSIX-extended for regular expressions

2004-01-27 Thread Adam i Agnieszka Gasiorowski FNORD
Pablo Gosse wrote:

> Hi all.  Quick quesiton about PCRE vs. POSIX-extended regular
> expressions.
> 
> How much of a difference is there between these two types of regular
> expressions.  I know I've read that PCRE is faster, but is it that much
> of a difference?

PCRE are _way_ more advanced, I, personally,
 prefer them. Read about the syntax in the 
 fine manual.

-- 
Seks, seksić, seksolatki... news:pl.soc.seks.moderowana
http://hyperreal.info  { iWanToDie }   WiNoNa)   (
http://szatanowskie-ladacznice.0-700.pl  foReVeR(  *  )
Poznaj jej zwiewne kształty... http://www.opera.com 007

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PCRE vs. POSIX-extended for regular expressions

2004-01-26 Thread Pablo Gosse
Hi all.  Quick quesiton about PCRE vs. POSIX-extended regular
expressions.

How much of a difference is there between these two types of regular
expressions.  I know I've read that PCRE is faster, but is it that much
of a difference?

A while ago I had to write a bunch of regular expression patterns for an
application and I wrote them using the POSIX-extended functions, but now
I'm debating converting them to their PCRE equivalents, because a) it
says they are often faster, and b) I want the experience in both.

Any thoughts on this?

Cheers and TIA,
Pablo 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php