note 33996 added to function.preg-match

From: Date: Sun, 13 Jul 2003 02:12:27 +0000
Subject: note 33996 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-52006@lists.php.net to get a copy of this message
hi! i just want to match a simple expression like word=number; with the equal sign and the semicolon when using regex coach (a nice little program you can download at http://weitz.de/files/regex-coach.exe and let's you analize regular expression) the string matching is ok, but when i try to use the expression in the string i get no good result... the code line i'm using is: preg_match("([a-z]+)=([0-9]+);",$string,$matches); can somebody please help me? thanks ---- Manual Page -- http://www.php.net/manual/en/function.preg-match.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33996 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33996&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33996&report=yes

« previous php.notes (#52006) next »