Von: "Bruno Grab" <[EMAIL PROTECTED]>
An: <[EMAIL PROTECTED]>
Betreff: Re: [PHP] matches problem ("preg_match")
Datum: Mittwoch, 14. November 2001 12:41

Thank you for your answer.
However our real problem is to solve it with preg_match.
we want to rather analyse more complicated structures than the one
in our example. Well, let me reformulate it:
How can we (with preg_match) s a v e  each subpattern  into an array
element, that is, also e a c h  m a t c h  o f  a  r e p e a t e d  s u b -
p a t t e r n  (e.g "(...)*" and "(...)+") ??
                                                    Thanks a lot (again)
Bruno
"Valentin V. Petruchek" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
028f01c16c5b$c87b1da0$[EMAIL PROTECTED]">news:028f01c16c5b$c87b1da0$[EMAIL PROTECTED]...
> Try this code:
>
> $str="eins zwei drei vier fünf sechs";
> $Wort = explode (' ',$str);
>
> $n=count($Wort);
> for($i=0;$i<$n;$i++){echo "$i: $Wort[$i]<br>";}
>
> It should works
>
> Zliy Pes [EMAIL PROTECTED]
>
>
>
>





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to