note 43268 added to function.ereg

From: Date: Wed, 16 Jun 2004 08:23:19 +0000
Subject: note 43268 added to function.ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-71133@lists.php.net to get a copy of this message
I wanted to include a single quote into the data: E.g. Someone called: D'Haeseleer ereg("^[a-z]+(-| |')?[a-z]+$",$name) So what I'm trying to do is allowing a nonbreaking space or a dash or a single quote. I'm not able to allow the single quote. I tried escaping it and lots of other things but none of them are working. Any ideas? ---- Manual Page -- http://www.php.net/manual/en/function.ereg.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43268 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43268&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43268&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71133) next »