RE: [PHP] regex brain-toot

From: Date: Mon, 19 Jun 2006 19:22:18 +0000
Subject: RE: [PHP] regex brain-toot
Groups: php.general 
Request: Send a blank email to php-general+get-238316@lists.php.net to get a copy of this message
[snip] Ahhhh....not PCRE. Can't help you there, as I've never used the ereg functions. However... preg_match ( "/\((\d{1,}.*?)\)/", "Upper Voltage (124.1)", $regs ); [/snip] Still returns parentheses ereg("[^\(][0-9\.]*" , "Upper Voltage (124.1)", $regs ); gets rid of opening bracket, but ereg("[^\(][0-9\.]*[^\)]" , "Upper Voltage (124.1)", $regs ); doesn't

« previous php.general (#238316) next »