[PHP] Re: If i use preg_match() how can i preg_match next? From: _lallous (elias_bachaalany <email protected>)
Date: 08/30/01

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 <email protected>> wrote in message
news:20010830085210.3727.qmail <email protected>
> In article <20010830083215.95556.qmail <email protected>>,
> elias_bachaalany <email protected> (_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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>