Mailinglisten-Archive |
Michael Borchers schrieb:
> $x = "foo[bar]";
>
> if(preg_match("/[a-z]\[[a-z]\]/", $x))
> {
> echo "X ok";
> }
>
> was ist falsch, warum liefert er mir kein true?
>
||Hej,
$x = "foo[bar]";
if(preg_match(|'/[a-z]+?\[[a-z]+?\]/||'|, $x))
{
echo "X ok";
}
viele grüße Thomas
--
/****************************************************
Thomas Blum
REDAXO - Open Source CMS
- einfach, flexibel, sinnvoll
- www.redaxo.org
Du siehst Dinge und fragst "Warum?".
Doch ich träume von Dingen und frage "Warum nicht?".
Zitat von Georg Bernhard Shaw (1856 - 1950)
****************************************************/
php::bar PHP Wiki - Listenarchive