sprite 1 sprite 30
functions-online
php

preg_match

en
de
es
fr
pt

description

Searches $subject for all matches to the regular expression given in $pattern and puts them in $matches in the order specified by $flags.

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.

Busca en $subject por una coincidencia ($matches) con la expresión regular dada en $pattern.

Analyse $subject pour trouver l'expression qui correspond à $pattern.

Pesquisas $subject para um jogo, para regular a expressão dada em $pattern.

declaration of preg_match

int preg_match ( string $pattern , string $subject , array &$matches [, int $flags ] [, int $offset ] )

test preg_match online













comments for preg_match

On 20. Jun 2010 17:05 butzi wrote:

@R.Hill: Thanks for this report, i try to fix it.

On 19. Jun 2010 00:13 R. Hill wrote:

/http:\/\/en\.wikipedia\.org/ is not accepted as a pattern, the following notice is returned: error: NOTICE: /e is not allowed for this function. result: 'an error occured before execution' Anyway, while I'm here, many thanks for the site, very useful.

On 17. Apr 2010 13:11 KEN wrote:

LOVE IT :)

more comments for preg_match

There are some more comments for preg_match(). To see them all click here.

+

Leave your comment