Re: regexp; splitting and perl compatible

From: Date: Thu, 04 Jan 2001 22:26:09 +0000
Subject: Re: regexp; splitting and perl compatible
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32748@lists.php.net to get a copy of this message
> 1) how can i split > "[key1]val[word2]bla[key3]bla" > into a key/val array ? Where's the value?... Is key1 value just 'word2', or val[word2] or val[word2]bla or...? I personally would not even use Regex for this -- It's not a complicated pattern going on, just [ and ] for delimiters. > 2) the php online manual mentions perl-compatible regexps, > but when i try to use one, it complains: > > Fatal error: Call to unsupported or undefined function preg_match() > > Should i include something? Php.ini?? > I get the error in php3 as well as php4.04. Check the output of your config.cache from your configure command... Looks like PHP is not finding the preg_ stuff... But why is the question.

« previous php.general (#32748) next »