note 20735 rejected from function.eregi by sander
| From: | sander@php.net | Date: | Mon, 15 Apr 2002 14:18:16 +0000 |
| Subject: | note 20735 rejected from function.eregi by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29366@lists.php.net to get a copy of this message | ||
I want to do something like this. This one above doesn't work, can somebod fix it?
$list = "House 124, Hall 225, Door 326, etc.";
if(eregi("(room)([0-9]{1,3})",$list,$match))
{
$result = "The $match[0] $match[1] is in the list!";
}