Re: help with explode()

From: Date: Fri, 24 Apr 2009 16:50:52 +0000
Subject: Re: help with explode()
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-291949@lists.php.net to get a copy of this message
Jan G.B. wrote:
Yes, preg_match_all returns all matches and the subpattern matches (the "stuff" inside the brakes) You can ommit stop it by using (?:) instead of ().. So: preg_match_all('/(?:[a-z]+|"[a-z ]+")/i', $_POST["terms"], $termsarray) You might want to check out the regular expression manuals on http://www.php.net/manual/en/book.pcre.php regards
Thanks, you've been a big help, that works great!

« previous php.general (#291949) next »