Re: If i use preg_match() how can i preg_match next?

From: Date: Thu, 30 Aug 2001 10:40:15 +0000
Subject: Re: If i use preg_match() how can i preg_match next?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-65190@lists.php.net to get a copy of this message
I don't really get it! in preg_match_all() the $matches array what will it contain? i mean $matches[0] is the whole match, and every $match[0][1] $match[0][2] $match[0][n] is my subexpression. now what does the $match[1] have? or $match[2] ? I usually use these modifiers: "/is" "Cc Zona" <cczona@nospam.invalid> wrote in message news:20010830085210.3727.qmail@pb1.pair.com... > In article <20010830083215.95556.qmail@pb1.pair.com>, > elias_bachaalany@yahoo.com (_lallous) wrote: > > > If i have this string: "1 2 3 4 5 6 7 no more!" > > and this regular expression: "([0-9]+)" > > > > now how can i run preg_match to get result by result until no results are > > returned? > > <http://php.net/preg_match_all> > > -- > CC

« previous php.general (#65190) next »