[PHP4BETA] CVS update: php4/ext/pcre
| From: | andrey | Date: | Fri, 21 May 1999 13:17:27 +0000 |
| Subject: | [PHP4BETA] CVS update: php4/ext/pcre | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-970@lists.php.net to get a copy of this message | ||
Date: Friday May 21, 1999 @ 9:17
Author: andrey
Update of /repository/php4/ext/pcre
In directory php:/tmp/cvs-serv7430/pcre
Added Files:
.cvsignore Makefile.am config.h.stub config.m4 pcre.c
php_pcre.h setup.stub
Log Message:
Initial check-in of PCRE (Perl Compatible Regular Expressions) extension.
PCRE library can be found at ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre/
config.m4 will be updated to be more robust later on.
perl_match() takes a regular expression, the source string, and the array
for subpattern matches.
perl_replace() takes a regular expression, the search string, and the replacement
string.
Regular expression is specified using delimiters and options. Example:
perl_match("/<[a-z]*>/i", $text, $tags);
More stuff is coming soon.
--
PHP 4 Beta