I can't remember where I read it, but Perl regexes are often faster than cWhat do you mean by that? Perls regexp engine is written in C. Is it faster than itself?
Perls regexp engine is a (modified) NFA. It's not hard to come up with matches are screaming fast on a DFA, and takes a long time on an NFA. But an NFA allows one to do things you cannot do with a DFA (writing a regexp matching balanced parenthesis for instance).
like the Perl engine is better developed, it was designed for parsing text,And what do you mean by that? Do you really think Larry was the only person who said "I got a brilliant idea for a regexp engine. Instead of designing it to do laundry, I will design it to parse text"?
In reply to Re^2: pcre vs perl regex engine
by JavaFan
in thread pcre vs perl regex engine
by jeteve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |