preg_match_all
description
Searches $subject for all matches to the regular expression given in $pattern and puts them in $matches in the order specified by $flags.
After the first match is found, the subsequent searches are continued on from end of the last match.
Durchsucht $subject nach allen Übereinstimmungen mit dem in $pattern angegebenen regulären Ausdruck und legt sie in der durch $flags festgelegten Reihenfolge in $matches ab.
Nachdem die erste Übereinstimmung gefunden wurde, wird die nachfolgende Suche jeweils am Ende der letzten Übereinstimmung fortgesetzt.
Busca el $subject por todas las coincidencias con la expresión regular dada en $patten, y las coloca en $matches en el orden especificado por $flags.
Después de que la primera coincidencia es encontrada, las búsquedas subsiguientes continúan desde el final de la última coincidencia.
Analyse $subject pour trouver l'expression $pattern et met les résultats dans $matches, dans l'ordre spécifié par $flags.
Après avoir trouvé un premier résultat, la recherche continue jusqu'à la fin de la chaîne.
Pesquisas $subject para todos os jogos para regular a expressão dada em $pattern e coloca-los em $matches na ordem especificada por $flags.
Após o primeiro jogo for encontrado, as buscas subseqüentes são continuou o final do jogo passado.
declaration of preg_match_all
int preg_match_all ( string $pattern , string $subject , array &$matches [, int $flags ] [, int $offset ] )
test preg_match_all online
share preg_match_all
comments for preg_match_all
On 29. Feb 2012 09:45 Mejicano wrote:
Is there any tool that may help me easily create regex to use with preg_match_all, some kind of designer? I frequently need to use preg_match_all and I'm not that good, I'm not a programmer either. Or at least a link where I could learn advaced stuff in a easy way. Thank you
On 13. Feb 2012 19:22 butzi wrote:
@sheila: to find the date in a string, you can use this: @([a-zA-Z]{3}/[0-9]{1,2}/[0-9]{1,2})@ to find the parts of the date you can use this: @([a-zA-Z]{3})/([0-9]{1,2})/([0-9]{1,2})@
On 08. Feb 2012 21:52 sheila wrote:
I am not able to find a right pattern for a date like: Feb/8/2012. Can anyone tell me how should it be?
more comments for preg_match_all
There are some more comments for preg_match_all(). To see them all click here.