RE: regex brain-toot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux