ereg issues

From: Date: Thu, 10 May 2001 16:22:09 +0000
Subject: ereg issues
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52316@lists.php.net to get a copy of this message
I'm feeling a bit stupid today how do I truncate a string to the first two [a-zA-Z] characters ? this sure isn't working <snip> $test = "jerry"; $test = ereg_replace("^\w*", "^[a-zA-Z]{2}" ,$test); </snip> Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com

« previous php.general (#52316) next »