preg_match
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.
function call
int preg_match( string $pattern , string $subject , array &$matches [, int $flags ] [, int $offset ] )
test preg_match online
comments for preg_match
On 14. Nov 2009 23:06 mich wrote:
work ok !
On 04. Nov 2009 20:39 m_rahman wrote:
correct
On 22. Oct 2009 19:29 butzi wrote:
@m_rahman: slashes are used to escape single quotes, just look at the quotation at the beginning and end of your string. The function is working fine for me.
On 21. Oct 2009 20:15 m_rahman wrote:
not working. it seems because magic quotes add slashes, so the returned html shows the used pattern escaped with slashes
