ereg usage
| From: | Peter Gumbrell | Date: | Sun, 16 Feb 2003 15:18:25 +0000 |
| Subject: | ereg usage | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-135752@lists.php.net to get a copy of this message | ||
Could someone please tell me why this code is not working:
ereg ('^[A-H]*([0-9]+)-$', $rank, $matches);
$workshop_ID = $matches[1][2};
where $rank is something like C12-1 and I just need the C12 part.
Many thanks
Peter Gumbrell
peter@orillia.net