note 22193 deleted from function.preg-match by aidan

From: Date: Sun, 04 Jul 2004 16:23:39 +0000
Subject: note 22193 deleted from function.preg-match by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72535@lists.php.net to get a copy of this message
Note Submitter: simon at blueshell.dk ---- To avoid the double escaping you can also just use single quotes, only it prevents from inserting variable data since '$foo' is interpreted as string $foo and not variable $foo. preg_match('/^[$oi]$/', $foo, $matches); Won't look for variable $oi but one of the three characters $, o or i. -- Simon

« previous php.notes (#72535) next »