Re: PCRE/Extended-POSIX portability in PEAR packages

From: Date: Sun, 22 Aug 2004 18:54:26 +0000
Subject: Re: PCRE/Extended-POSIX portability in PEAR packages
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32822@lists.php.net to get a copy of this message
Jesus M. Castagnetto wrote:
Just my 0.02 Some time ago I wrote a simple class for solving this at work, that wrapped some common PCRE and POSIX regex operations, mainly matching. The methods accepted arrays of regexes and input strings. http://talks.php.net/show/sdphp_using_tools/14 I had a look at your example. You are doing a "convenience" wrapper for doing matches and retreiving results. What I am talking about is a portability issue when preg_* functions are not available but ereg_* are (or vice-versa.)
Pattern matching for PCRE and ext. POSIX can sometime be different, for instance word boundary. This is not rocket science, just wondering what is the best way to do that in PEAR. The reason I'm raising this "issue" is because I bumped into it doing a project for someone who had a limited PHP installation... -Philippe

« previous php.pear.dev (#32822) next »